1 |
use serde::{Deserialize, Serialize};
|
2 |
|
3 |
use crate::{settings::Setting, user::User};
|
4 |
|
5 |
use super::{DefaultBranch, CommitBodyType};
|
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 |
|