#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PostList {
#[serde(rename = "order", skip_serializing_if = "Option::is_none")]
pub order: Option<Vec<String>>,
#[serde(rename = "posts", skip_serializing_if = "Option::is_none")]
pub posts: Option<::std::collections::HashMap<String, crate::models::Post>>,
#[serde(rename = "next_post_id", skip_serializing_if = "Option::is_none")]
pub next_post_id: Option<String>,
#[serde(rename = "prev_post_id", skip_serializing_if = "Option::is_none")]
pub prev_post_id: Option<String>,
#[serde(rename = "has_next", skip_serializing_if = "Option::is_none")]
pub has_next: Option<bool>,
}
impl PostList {
pub fn new() -> PostList {
PostList {
order: None,
posts: None,
next_post_id: None,
prev_post_id: None,
has_next: None,
}
}
}