#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PostListWithSearchMatches {
#[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 = "matches", skip_serializing_if = "Option::is_none")]
pub matches: Option<::std::collections::HashMap<String, Vec<String>>>,
}
impl PostListWithSearchMatches {
pub fn new() -> PostListWithSearchMatches {
PostListWithSearchMatches {
order: None,
posts: None,
matches: None,
}
}
}