pub enum SinkEventKind {
Decision {
effect: String,
principal: String,
action: String,
resource: String,
policies: Vec<String>,
reasons: Vec<String>,
duration_micros: u64,
trace_id: Option<String>,
span_id: Option<String>,
tenant_id: Option<String>,
subject_id: Option<String>,
cached: bool,
},
DelegationMint {
issuer: String,
subject: String,
actions: Vec<String>,
ttl_seconds: i64,
},
DelegationVerify {
success: bool,
issuer: Option<String>,
subject: Option<String>,
},
PolicyReload {
version: String,
policy_count: usize,
source: String,
},
CacheLookup {
hit: bool,
principal: String,
action: String,
},
PdpError {
error: String,
fallback: String,
},
}Expand description
What the event represents.
Variants§
Decision
Authorization decision (allow or deny).
Fields
DelegationMint
Delegation token minted.
DelegationVerify
Delegation token verified.
PolicyReload
Policy bundle loaded or reloaded.
CacheLookup
Decision cache hit/miss.
PdpError
Authorization failed because the PDP could not be reached.
Trait Implementations§
Source§impl Clone for SinkEventKind
impl Clone for SinkEventKind
Source§fn clone(&self) -> SinkEventKind
fn clone(&self) -> SinkEventKind
Returns a duplicate of the value. Read more
1.0.0 · 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 SinkEventKind
impl Debug for SinkEventKind
Source§impl<'de> Deserialize<'de> for SinkEventKind
impl<'de> Deserialize<'de> for SinkEventKind
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 SinkEventKind
impl RefUnwindSafe for SinkEventKind
impl Send for SinkEventKind
impl Sync for SinkEventKind
impl Unpin for SinkEventKind
impl UnwindSafe for SinkEventKind
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