pub struct AuditActor { /* private fields */ }Expand description
Who caused an audited fact.
The role is optional because not every actor acts through one — the engine’s own timeouts do not — but when a role exists it is part of the attribution, not decoration.
Implementations§
Source§impl AuditActor
impl AuditActor
pub fn new( actor_id: impl Into<String>, kind: AuditActorKind, role_id: Option<RoleId>, ) -> Result<Self, DomainError>
Sourcepub fn engine(actor_id: impl Into<String>) -> Result<Self, DomainError>
pub fn engine(actor_id: impl Into<String>) -> Result<Self, DomainError>
The engine acting on its own behalf.
pub fn actor_id(&self) -> &str
pub fn kind(&self) -> AuditActorKind
pub fn role_id(&self) -> Option<&RoleId>
Trait Implementations§
Source§impl Clone for AuditActor
impl Clone for AuditActor
Source§impl Debug for AuditActor
impl Debug for AuditActor
Source§impl<'de> Deserialize<'de> for AuditActor
impl<'de> Deserialize<'de> for AuditActor
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
impl Eq for AuditActor
Source§impl PartialEq for AuditActor
impl PartialEq for AuditActor
Source§impl Serialize for AuditActor
impl Serialize for AuditActor
impl StructuralPartialEq for AuditActor
Auto Trait Implementations§
impl Freeze for AuditActor
impl RefUnwindSafe for AuditActor
impl Send for AuditActor
impl Sync for AuditActor
impl Unpin for AuditActor
impl UnsafeUnpin for AuditActor
impl UnwindSafe for AuditActor
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