use crate::models;
use serde::{Deserialize, Serialize};
#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GroupAuditLogEntryDataGroupPostCreate {
#[serde(flatten)]
pub group_audit_log_entry_data_group_post: models::GroupAuditLogEntryDataGroupPost,
#[serde(rename = "roleIds", deserialize_with = "Option::deserialize")]
pub role_ids: Option<Vec<String>>,
#[serde(rename = "sendNotification")]
pub send_notification: bool,
}
impl GroupAuditLogEntryDataGroupPostCreate {
pub fn new(
group_audit_log_entry_data_group_post: models::GroupAuditLogEntryDataGroupPost,
role_ids: Option<Vec<String>>,
send_notification: bool,
) -> GroupAuditLogEntryDataGroupPostCreate {
GroupAuditLogEntryDataGroupPostCreate {
group_audit_log_entry_data_group_post,
role_ids,
send_notification,
}
}
}