#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedUserList {
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
pub count: Option<i32>,
#[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::User>>,
}
impl Default for PaginatedUserList {
fn default() -> Self {
Self::new()
}
}
impl PaginatedUserList {
#[must_use]
pub fn new() -> PaginatedUserList {
PaginatedUserList {
count: None,
next: None,
previous: None,
results: None,
}
}
}