Struct AuditLog

Source
pub struct AuditLog {
Show 23 fields pub id: String, pub type: AuditLogEventType, pub effective_at: u32, pub project: Option<AuditLogProject>, pub actor: AuditLogActor, pub api_key_created: Option<AuditLogApiKeyCreated>, pub api_key_updated: Option<AuditLogApiKeyUpdated>, pub api_key_deleted: Option<AuditLogApiKeyDeleted>, pub invite_sent: Option<AuditLogInviteSent>, pub invite_accepted: Option<AuditLogInviteAccepted>, pub invite_deleted: Option<AuditLogInviteDeleted>, pub login_failed: Option<AuditLogLoginFailed>, pub logout_failed: Option<AuditLogLogoutFailed>, pub organization_updated: Option<AuditLogOrganizationUpdated>, pub project_created: Option<AuditLogProjectCreated>, pub project_updated: Option<AuditLogProjectUpdated>, pub project_archived: Option<AuditLogProjectArchived>, pub service_account_created: Option<AuditLogServiceAccountCreated>, pub service_account_updated: Option<AuditLogServiceAccountUpdated>, pub service_account_deleted: Option<AuditLogServiceAccountDeleted>, pub user_added: Option<AuditLogUserAdded>, pub user_updated: Option<AuditLogUserUpdated>, pub user_deleted: Option<AuditLogUserDeleted>,
}
Expand description

A log of a user action or configuration change within this organization.

Fields§

§id: String

The ID of this log.

§type: AuditLogEventType

The event type.

§effective_at: u32

The Unix timestamp (in seconds) of the event.

§project: Option<AuditLogProject>

The project that the action was scoped to. Absent for actions not scoped to projects.

§actor: AuditLogActor

The actor who performed the audit logged action.

§api_key_created: Option<AuditLogApiKeyCreated>

The details for events with the type api_key.created.

§api_key_updated: Option<AuditLogApiKeyUpdated>

The details for events with the type api_key.updated.

§api_key_deleted: Option<AuditLogApiKeyDeleted>

The details for events with the type api_key.deleted.

§invite_sent: Option<AuditLogInviteSent>

The details for events with the type invite.sent.

§invite_accepted: Option<AuditLogInviteAccepted>

The details for events with the type invite.accepted.

§invite_deleted: Option<AuditLogInviteDeleted>

The details for events with the type invite.deleted.

§login_failed: Option<AuditLogLoginFailed>

The details for events with the type login.failed.

§logout_failed: Option<AuditLogLogoutFailed>

The details for events with the type logout.failed.

§organization_updated: Option<AuditLogOrganizationUpdated>

The details for events with the type organization.updated.

§project_created: Option<AuditLogProjectCreated>

The details for events with the type project.created.

§project_updated: Option<AuditLogProjectUpdated>

The details for events with the type project.updated.

§project_archived: Option<AuditLogProjectArchived>

The details for events with the type project.archived.

§service_account_created: Option<AuditLogServiceAccountCreated>

The details for events with the type service_account.created.

§service_account_updated: Option<AuditLogServiceAccountUpdated>

The details for events with the type service_account.updated.

§service_account_deleted: Option<AuditLogServiceAccountDeleted>

The details for events with the type service_account.deleted.

§user_added: Option<AuditLogUserAdded>

The details for events with the type user.added.

§user_updated: Option<AuditLogUserUpdated>

The details for events with the type user.updated.

§user_deleted: Option<AuditLogUserDeleted>

The details for events with the type user.deleted.

Trait Implementations§

Source§

impl Debug for AuditLog

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AuditLog

Source§

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 Serialize for AuditLog

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T