1 |
use serde::{Deserialize, Serialize};
|
2 |
|
3 |
use crate::settings::Setting;
|
4 |
|
5 |
use super::DefaultBranch;
|
6 |
|
7 |
#[derive(Debug, Serialize, Deserialize)]
|
8 |
pub struct RepositoryDescription(pub String);
|
9 |
|
10 |
impl Setting for RepositoryDescription {
|
11 |
fn name() -> &'static str {
|
12 |
"Repository Description"
|
13 |
}
|
14 |
}
|
15 |
|
16 |
#[derive(Debug, Serialize, Deserialize)]
|
17 |
pub struct RepositoryVisibilitySetting(pub String);
|
18 |
|
19 |
impl Setting for RepositoryVisibilitySetting {
|
20 |
fn name() -> &'static str {
|
21 |
"Repository Visibility"
|
22 |
}
|
23 |
}
|
24 |
|
25 |
impl Setting for DefaultBranch {
|
26 |
fn name() -> &'static str {
|
27 |
"Default Branch"
|
28 |
}
|
29 |
}
|