Skip to main content

asana/model/
audit_log_event_resource.rs

1use serde::{Serialize, Deserialize};
2///The primary object that was affected by this event.
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct AuditLogEventResource {
5    ///The email of the resource, if applicable.
6    pub email: String,
7    ///Globally unique identifier of the resource.
8    pub gid: String,
9    ///The name of the resource.
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub name: Option<String>,
12    ///The subtype of resource. Most resources will not have a subtype.
13    pub resource_subtype: String,
14    ///The type of resource.
15    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}