pub struct AuthDecision {
pub allowed: bool,
pub reasons: Vec<String>,
pub evaluation_time_us: u64,
}Expand description
Authorization decision result
Returned by policy evaluation methods to indicate whether an action is allowed and why.
Fields§
§allowed: boolWhether the action is allowed
reasons: Vec<String>Human-readable reasons for the decision
evaluation_time_us: u64Evaluation time in microseconds (deterministic, no floating point)
Trait Implementations§
Source§impl Clone for AuthDecision
impl Clone for AuthDecision
Source§fn clone(&self) -> AuthDecision
fn clone(&self) -> AuthDecision
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 AuthDecision
impl Debug for AuthDecision
Source§impl<'de> Deserialize<'de> for AuthDecision
impl<'de> Deserialize<'de> for AuthDecision
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 AuthDecision
impl RefUnwindSafe for AuthDecision
impl Send for AuthDecision
impl Sync for AuthDecision
impl Unpin for AuthDecision
impl UnsafeUnpin for AuthDecision
impl UnwindSafe for AuthDecision
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