feat: default for config

This commit is contained in:
əlemi 2024-03-23 20:24:29 +01:00
parent 13afd5be87
commit 34b7db5ce6
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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(