asana/model/audit_log_event_actor.rs
1use serde::{Serialize, Deserialize};
2///The entity that triggered the event. Will typically be a user.
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct AuditLogEventActor {
5 /**The type of actor.
6Can be one of `user`, `asana`, `asana_support`, `anonymous`, or `external_administrator`.*/
7 pub actor_type: String,
8 ///The email of the actor, if it is a user.
9 pub email: String,
10 ///Globally unique identifier of the actor, if it is a user.
11 pub gid: String,
12 ///The name of the actor, if it is a user.
13 pub name: String,
14}
15impl std::fmt::Display for AuditLogEventActor {
16 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17 write!(f, "{}", serde_json::to_string(self).unwrap())
18 }
19}