diff --git a/src/post.rs b/src/post.rs index 6a4cfe6..9b801b5 100644 --- a/src/post.rs +++ b/src/post.rs @@ -17,48 +17,48 @@ impl Into> for Posts { #[derive(serde::Deserialize, Clone, Debug)] pub struct Post { - id: Id, - created_at: String, - updated_at: String, - tags: PostTags, - file: PostFile, - rating: String, - fav_count: u16, - sources: Vec, - approver_id: Option, - uploader_id: Id, - description: String, - comment_count: u16, - has_notes: bool, - is_favorited: bool, - change_seq: Option, - relationships: PostRelationships + pub id: Id, + pub created_at: String, + pub updated_at: String, + pub tags: PostTags, + pub file: PostFile, + pub rating: String, + pub fav_count: u16, + pub sources: Vec, + pub approver_id: Option, + pub uploader_id: Id, + pub description: String, + pub comment_count: u16, + pub has_notes: bool, + pub is_favorited: bool, + pub change_seq: Option, + pub relationships: PostRelationships } #[derive(serde::Deserialize, Clone, Debug)] pub struct PostTags { - general: Vec, - artist: Vec, - copyright: Vec, - character: Vec, - invalid: Vec, - meta: Vec, - lore: Vec + pub general: Vec, + pub artist: Vec, + pub copyright: Vec, + pub character: Vec, + pub invalid: Vec, + pub meta: Vec, + pub lore: Vec } #[derive(serde::Deserialize, Clone, Debug)] pub struct PostFile { - width: ImageDimension, - height: ImageDimension, - ext: String, - size: FileSize, - md5: String, - url: String + pub width: ImageDimension, + pub height: ImageDimension, + pub ext: String, + pub size: FileSize, + pub md5: String, + pub url: String } #[derive(serde::Deserialize, Clone, Debug)] pub struct PostRelationships { - parent_id: Option, - has_children: bool, - has_active_children: bool, + pub parent_id: Option, + pub has_children: bool, + pub has_active_children: bool, }