use crate::models;
use serde::{Deserialize, Serialize};
#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GroupAuditLogEntryDataGroupAnnouncement {
#[serde(rename = "authorId")]
pub author_id: String,
#[serde(rename = "imageId", deserialize_with = "Option::deserialize")]
pub image_id: Option<String>,
#[serde(rename = "sendNotification")]
pub send_notification: bool,
#[serde(rename = "text")]
pub text: String,
#[serde(rename = "title")]
pub title: String,
}
impl GroupAuditLogEntryDataGroupAnnouncement {
pub fn new(
author_id: String,
image_id: Option<String>,
send_notification: bool,
text: String,
title: String,
) -> GroupAuditLogEntryDataGroupAnnouncement {
GroupAuditLogEntryDataGroupAnnouncement {
author_id,
image_id,
send_notification,
text,
title,
}
}
}