pub struct ScimAuditEvent {
pub kind: ScimAuditEventKind,
pub severity: ScimAuditSeverity,
pub provider_id: Option<String>,
pub user_id: Option<String>,
pub organization_id: Option<String>,
pub reason: Option<String>,
}Expand description
Audit event emitted by the SCIM plugin.
Fields§
§kind: ScimAuditEventKindEvent kind.
severity: ScimAuditSeveritySeverity.
provider_id: Option<String>SCIM provider id when known.
user_id: Option<String>RustAuth user id when known.
organization_id: Option<String>Organization id when the provider is org-scoped.
reason: Option<String>Optional detail (error message, rollback reason, etc.).
Implementations§
Source§impl ScimAuditEvent
impl ScimAuditEvent
Sourcepub fn new(kind: ScimAuditEventKind, severity: ScimAuditSeverity) -> Self
pub fn new(kind: ScimAuditEventKind, severity: ScimAuditSeverity) -> Self
Create an audit event with no optional context.
pub fn with_provider_id(self, provider_id: impl Into<String>) -> Self
pub fn with_user_id(self, user_id: impl Into<String>) -> Self
pub fn with_organization_id(self, organization_id: impl Into<String>) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ScimAuditEvent
impl Clone for ScimAuditEvent
Source§fn clone(&self) -> ScimAuditEvent
fn clone(&self) -> ScimAuditEvent
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 ScimAuditEvent
impl Debug for ScimAuditEvent
impl Eq for ScimAuditEvent
Source§impl PartialEq for ScimAuditEvent
impl PartialEq for ScimAuditEvent
Source§fn eq(&self, other: &ScimAuditEvent) -> bool
fn eq(&self, other: &ScimAuditEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScimAuditEvent
Auto Trait Implementations§
impl Freeze for ScimAuditEvent
impl RefUnwindSafe for ScimAuditEvent
impl Send for ScimAuditEvent
impl Sync for ScimAuditEvent
impl Unpin for ScimAuditEvent
impl UnsafeUnpin for ScimAuditEvent
impl UnwindSafe for ScimAuditEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.