#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SnapshotWithContext {
#[serde(rename = "_users")]
pub _users: Vec<crate::models::User>,
#[serde(rename = "_channels")]
pub _channels: Vec<crate::models::Channel>,
#[serde(rename = "_server", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub _server: Option<Option<Box<crate::models::SnapshotWithContextServer>>>,
#[serde(rename = "_id")]
pub _id: String,
#[serde(rename = "report_id")]
pub report_id: String,
#[serde(rename = "content")]
pub content: Box<crate::models::SnapshotWithContextContent>,
}
impl SnapshotWithContext {
pub fn new(_users: Vec<crate::models::User>, _channels: Vec<crate::models::Channel>, _id: String, report_id: String, content: crate::models::SnapshotWithContextContent) -> SnapshotWithContext {
SnapshotWithContext {
_users,
_channels,
_server: None,
_id,
report_id,
content: Box::new(content),
}
}
}