pub struct AuditEnvelopeDraft {
pub operation: String,
pub subject: Option<String>,
pub request_id: RequestId,
pub trace_context: Option<TraceContext>,
pub actor: Actor,
pub redaction_policy: RedactionPolicy,
}Expand description
Prepared audit envelope draft.
This crate does not emit or persist audit events. The draft is the typed handoff point that downstream server code consumes when assembling request, trace, actor, and redaction context.
Fields§
§operation: StringOperation name, such as card.register.
subject: Option<String>Optional resource subject for the operation.
request_id: RequestIdRequest ID associated with the operation.
trace_context: Option<TraceContext>Optional W3C trace context for the operation.
actor: ActorActor that initiated the operation.
redaction_policy: RedactionPolicyRedaction policy applied before durable audit emission.
Trait Implementations§
Source§impl Clone for AuditEnvelopeDraft
impl Clone for AuditEnvelopeDraft
Source§impl Debug for AuditEnvelopeDraft
impl Debug for AuditEnvelopeDraft
impl Eq for AuditEnvelopeDraft
Source§impl PartialEq for AuditEnvelopeDraft
impl PartialEq for AuditEnvelopeDraft
impl StructuralPartialEq for AuditEnvelopeDraft
Auto Trait Implementations§
impl Freeze for AuditEnvelopeDraft
impl RefUnwindSafe for AuditEnvelopeDraft
impl Send for AuditEnvelopeDraft
impl Sync for AuditEnvelopeDraft
impl Unpin for AuditEnvelopeDraft
impl UnsafeUnpin for AuditEnvelopeDraft
impl UnwindSafe for AuditEnvelopeDraft
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.