use crate::models;
use serde::{Deserialize, Serialize};
#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GroupAuditLogDataGroupCalendarEventCreate {
#[serde(rename = "accessType")]
pub access_type: models::CalendarEventAccess,
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "imageId", deserialize_with = "Option::deserialize")]
pub image_id: Option<String>,
#[serde(rename = "title")]
pub title: String,
#[serde(rename = "type")]
pub r#type: String,
}
impl GroupAuditLogDataGroupCalendarEventCreate {
pub fn new(
access_type: models::CalendarEventAccess,
description: String,
image_id: Option<String>,
title: String,
r#type: String,
) -> GroupAuditLogDataGroupCalendarEventCreate {
GroupAuditLogDataGroupCalendarEventCreate {
access_type,
description,
image_id,
title,
r#type,
}
}
}