use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SysadminEvent {
pub data: SysadminEventData,
#[serde(rename = "type")]
pub r#type: String,
}
pub struct SysadminEventRequired {
pub data: SysadminEventData,
pub r#type: String,
}
impl SysadminEvent {
pub fn new(required: SysadminEventRequired) -> Self {
Self {
data: required.data,
r#type: required.r#type,
}
}
pub fn set_data(mut self, value: SysadminEventData) -> Self {
self.data = value;
self
}
pub fn set_type(mut self, value: String) -> Self {
self.r#type = value;
self
}
}