asana/model/
audit_log_event_resource.rs1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct AuditLogEventResource {
5 pub email: String,
7 pub gid: String,
9 #[serde(skip_serializing_if = "Option::is_none")]
11 pub name: Option<String>,
12 pub resource_subtype: String,
14 pub resource_type: String,
16}
17impl std::fmt::Display for AuditLogEventResource {
18 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
19 write!(f, "{}", serde_json::to_string(self).unwrap())
20 }
21}