pub struct HostedAuditEnvelope {
pub envelope: EventEnvelope,
pub tenant: Option<TenantContext>,
pub actor: Option<PrincipalContext>,
}Expand description
The payload a hook target receives: the canonical envelope plus the hosted actor/tenant context, attached here (rather than on every local event constructor) so local mode stays unchanged.
Fields§
§envelope: EventEnvelope§tenant: Option<TenantContext>§actor: Option<PrincipalContext>Trait Implementations§
Source§impl Clone for HostedAuditEnvelope
impl Clone for HostedAuditEnvelope
Source§fn clone(&self) -> HostedAuditEnvelope
fn clone(&self) -> HostedAuditEnvelope
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 HostedAuditEnvelope
impl Debug for HostedAuditEnvelope
Source§impl<'de> Deserialize<'de> for HostedAuditEnvelope
impl<'de> Deserialize<'de> for HostedAuditEnvelope
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
Auto Trait Implementations§
impl Freeze for HostedAuditEnvelope
impl RefUnwindSafe for HostedAuditEnvelope
impl Send for HostedAuditEnvelope
impl Sync for HostedAuditEnvelope
impl Unpin for HostedAuditEnvelope
impl UnsafeUnpin for HostedAuditEnvelope
impl UnwindSafe for HostedAuditEnvelope
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