pub struct DenialReceipt {
pub audit_event_id: Option<Uuid>,
pub audit_outcome: DenialAuditOutcome,
}Expand description
What a refused dispatch can cite: the GateDenied audit row’s id when
one committed, and where the row ended up otherwise. Boxed on the error
so a refusal does not widen every Result<_, RuntimeError> in the tree.
Fields§
§audit_event_id: Option<Uuid>The audit row’s event id when audit_outcome is Committed.
audit_outcome: DenialAuditOutcomeWhether the row the caller could cite exists.
Implementations§
Source§impl DenialReceipt
impl DenialReceipt
Sourcepub fn not_audited() -> Self
pub fn not_audited() -> Self
The refusal’s path writes no audit row.
Trait Implementations§
Source§impl Clone for DenialReceipt
impl Clone for DenialReceipt
Source§impl Debug for DenialReceipt
impl Debug for DenialReceipt
impl Eq for DenialReceipt
Source§impl PartialEq for DenialReceipt
impl PartialEq for DenialReceipt
impl StructuralPartialEq for DenialReceipt
Auto Trait Implementations§
impl Freeze for DenialReceipt
impl RefUnwindSafe for DenialReceipt
impl Send for DenialReceipt
impl Sync for DenialReceipt
impl Unpin for DenialReceipt
impl UnsafeUnpin for DenialReceipt
impl UnwindSafe for DenialReceipt
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more