use serde::{Deserialize, Serialize}; use crate::{ model::{ repository::{Repository, RepositoryVisibility}, settings::Setting, }, operation::GiteratedObjectValue, }; // pub struct RepositorySetting(pub V); // impl + Send> GiteratedOperation // for RepositorySetting // { // fn operation_name(&self) -> &'static str { // "setting_get" // } // type Success = V; // type Failure = GetValueError; // } #[derive(Debug, Hash, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct Description(pub String); impl GiteratedObjectValue for Description { type Object = Repository; fn value_name() -> &'static str { "description" } } impl Setting for Description { fn name() -> &'static str { "description" } } #[derive(Debug, Hash, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct Visibility(pub RepositoryVisibility); impl GiteratedObjectValue for Visibility { type Object = Repository; fn value_name() -> &'static str { "visibility" } }