pub struct AuditLogEvent {
pub actor: AuditLogEventActor,
pub context: AuditLogEventContext,
pub created_at: DateTime<Utc>,
pub details: AuditLogEventDetails,
pub event_category: String,
pub event_type: String,
pub gid: String,
pub resource: AuditLogEventResource,
}Expand description
An object representing a single event within an Asana domain.
Every audit log event is comprised of an event_type, actor, resource, and context. Some events will include additional metadata about the event under details. See our currently supported list of events for more details.
Fields§
§actor: AuditLogEventActorThe entity that triggered the event. Will typically be a user.
context: AuditLogEventContextThe context from which this event originated.
created_at: DateTime<Utc>The time the event was created.
details: AuditLogEventDetailsEvent specific details. The schema will vary depending on the event_type.
event_category: StringThe category that this event_type belongs to.
event_type: StringThe type of the event.
gid: StringGlobally unique identifier of the AuditLogEvent, as a string.
resource: AuditLogEventResourceThe primary object that was affected by this event.
Trait Implementations§
Source§impl Clone for AuditLogEvent
impl Clone for AuditLogEvent
Source§fn clone(&self) -> AuditLogEvent
fn clone(&self) -> AuditLogEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditLogEvent
impl Debug for AuditLogEvent
Source§impl Default for AuditLogEvent
impl Default for AuditLogEvent
Source§fn default() -> AuditLogEvent
fn default() -> AuditLogEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditLogEvent
impl<'de> Deserialize<'de> for AuditLogEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AuditLogEvent
impl Display for AuditLogEvent
Auto Trait Implementations§
impl Freeze for AuditLogEvent
impl RefUnwindSafe for AuditLogEvent
impl Send for AuditLogEvent
impl Sync for AuditLogEvent
impl Unpin for AuditLogEvent
impl UnsafeUnpin for AuditLogEvent
impl UnwindSafe for AuditLogEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more