#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedCommentList {
#[serde(
rename = "next",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub next: Option<Option<String>>,
#[serde(
rename = "previous",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub previous: Option<Option<String>>,
#[serde(rename = "results", skip_serializing_if = "Option::is_none")]
pub results: Option<Vec<crate::models::Comment>>,
}
impl Default for PaginatedCommentList {
fn default() -> Self {
Self::new()
}
}
impl PaginatedCommentList {
#[must_use]
pub fn new() -> PaginatedCommentList {
PaginatedCommentList {
next: None,
previous: None,
results: None,
}
}
}