use giterated_models::{user::User, value::GiteratedObjectValue}; use serde::{Deserialize, Serialize}; use crate::Issue; #[derive(Clone, Debug, Serialize, Deserialize)] pub struct CreationDate(pub String); impl GiteratedObjectValue for CreationDate { type Object = Issue; fn value_name() -> &'static str { "creation_date" } } #[derive(Clone, Debug, Serialize, Deserialize)] pub struct CommentCount(pub u32); impl GiteratedObjectValue for CommentCount { type Object = Issue; fn value_name() -> &'static str { "comment_count" } } #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Name(pub String); impl GiteratedObjectValue for Name { type Object = Issue; fn value_name() -> &'static str { "name" } } #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Author(pub User); impl GiteratedObjectValue for Author { type Object = Issue; fn value_name() -> &'static str { "owner" } }