use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetAuditLogsS3Status200Response {
#[serde(rename = "last_xmin")]
pub last_xmin: i64,
#[serde(rename = "last_ts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_ts: Option<Option<String>>,
#[serde(rename = "bootstrapping")]
pub bootstrapping: bool,
#[serde(rename = "last_exported_audit_ts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_exported_audit_ts: Option<Option<String>>,
#[serde(rename = "last_run_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_run_at: Option<Option<String>>,
#[serde(rename = "last_run_exported")]
pub last_run_exported: i64,
#[serde(rename = "updated_at")]
pub updated_at: String,
#[serde(rename = "owner", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub owner: Option<Option<String>>,
}
impl GetAuditLogsS3Status200Response {
pub fn new(last_xmin: i64, bootstrapping: bool, last_run_exported: i64, updated_at: String) -> GetAuditLogsS3Status200Response {
GetAuditLogsS3Status200Response {
last_xmin,
last_ts: None,
bootstrapping,
last_exported_audit_ts: None,
last_run_at: None,
last_run_exported,
updated_at,
owner: None,
}
}
}