pub enum AuditRecordKind {
ScopeCheck,
ForwardPolicyApplied,
}Expand description
Discriminates the two flavors of audit record this ticket lands.
ScopeCheck is the default — written by AUTHZ-CORE-5 default-deny
dispatch. ForwardPolicyApplied is what AUTHLANG-3 writes when a
forwarding policy runs at a route_to_child edge.
Per AUTHLANG-S01-output §4 Tier-B resolution: the variant is additive
with serde-default ScopeCheck so AUTHZ-side call sites that omit the
kind field continue to deserialize as ScopeCheck records.
Variants§
ScopeCheck
A scope-check decision at default-deny dispatch (AUTHZ-CORE-5).
ForwardPolicyApplied
A forwarding policy applied at a route-to-child edge (AUTHLANG-3).
Trait Implementations§
Source§impl Clone for AuditRecordKind
impl Clone for AuditRecordKind
Source§fn clone(&self) -> AuditRecordKind
fn clone(&self) -> AuditRecordKind
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 AuditRecordKind
impl Debug for AuditRecordKind
Source§impl Default for AuditRecordKind
impl Default for AuditRecordKind
Source§fn default() -> AuditRecordKind
fn default() -> AuditRecordKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditRecordKind
impl<'de> Deserialize<'de> for AuditRecordKind
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
Source§impl From<ForwardPolicyApplied> for AuditRecordKind
impl From<ForwardPolicyApplied> for AuditRecordKind
Source§fn from(_: ForwardPolicyApplied) -> Self
fn from(_: ForwardPolicyApplied) -> Self
Converts to this type from the input type.
Source§impl From<ScopeCheck> for AuditRecordKind
impl From<ScopeCheck> for AuditRecordKind
Source§fn from(_: ScopeCheck) -> Self
fn from(_: ScopeCheck) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AuditRecordKind
impl PartialEq for AuditRecordKind
Source§fn eq(&self, other: &AuditRecordKind) -> bool
fn eq(&self, other: &AuditRecordKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuditRecordKind
impl Serialize for AuditRecordKind
impl Copy for AuditRecordKind
impl Eq for AuditRecordKind
impl StructuralPartialEq for AuditRecordKind
Auto Trait Implementations§
impl Freeze for AuditRecordKind
impl RefUnwindSafe for AuditRecordKind
impl Send for AuditRecordKind
impl Sync for AuditRecordKind
impl Unpin for AuditRecordKind
impl UnsafeUnpin for AuditRecordKind
impl UnwindSafe for AuditRecordKind
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