forked from alemi/upub
feat: default for config
This commit is contained in:
parent
13afd5be87
commit
34b7db5ce6
1 changed files with 13 additions and 0 deletions
|
@ -12,6 +12,19 @@ pub struct Model {
|
||||||
pub show_following: bool,
|
pub show_following: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Model {
|
||||||
|
fn default() -> Self {
|
||||||
|
Model {
|
||||||
|
id: "".to_string(),
|
||||||
|
accept_follow_requests: true,
|
||||||
|
show_following_count: true,
|
||||||
|
show_following: true,
|
||||||
|
show_followers_count: true,
|
||||||
|
show_followers: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
pub enum Relation {
|
pub enum Relation {
|
||||||
#[sea_orm(
|
#[sea_orm(
|
||||||
|
|
Loading…
Reference in a new issue