use serde::{Deserialize, Serialize}; pub trait Setting: Serialize { fn name() -> &'static str; } #[derive(Debug, Serialize, Deserialize)] pub struct UserBio(pub String); impl Setting for UserBio { fn name() -> &'static str { "Bio" } } #[derive(Debug, Serialize, Deserialize)] pub struct UserDisplayName(pub String); impl Setting for UserDisplayName { fn name() -> &'static str { "Display Name" } } #[derive(Debug, Serialize, Deserialize)] pub struct UserDisplayImage(pub String); impl Setting for UserDisplayImage { fn name() -> &'static str { "Profile Image" } }