JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

So. Much. Work.

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨b05f964

⁨giterated-models/src/repository/settings.rs⁩ - ⁨572⁩ bytes
Raw
1 use serde::{Deserialize, Serialize};
2
3 use crate::{settings::Setting, user::User};
4
5 use super::{CommitBodyType, DefaultBranch};
6
7 impl Setting for DefaultBranch {
8 fn name() -> &'static str {
9 "default_branch"
10 }
11 }
12
13 #[derive(Debug, Hash, Clone, PartialEq, Eq, Serialize, Deserialize)]
14 #[repr(transparent)]
15 #[serde(transparent)]
16 pub struct AccessList(pub Vec<User>);
17
18 impl Setting for AccessList {
19 fn name() -> &'static str {
20 "access_list"
21 }
22 }
23
24 impl Setting for CommitBodyType {
25 fn name() -> &'static str {
26 "commit_body_type"
27 }
28 }
29