use serde::{Deserialize, Serialize}; use crate::{model::user::User, operation::GiteratedObjectValue}; // pub struct UserSetting(pub V); // impl + Send> GiteratedOperation // for UserSetting // { // fn operation_name(&self) -> &'static str { // "setting_get" // } // type Success = V; // type Failure = GetValueError; // } #[derive(Debug, Hash, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct Bio(pub String); impl GiteratedObjectValue for Bio { type Object = User; fn value_name() -> &'static str { "bio" } } #[derive(Debug, Hash, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct DisplayName(pub String); impl GiteratedObjectValue for DisplayName { type Object = User; fn value_name() -> &'static str { "display_name" } }