pub struct SecurityDecision {
pub allowed: bool,
pub reason: &'static str,
pub warnings: Vec<String>,
}Expand description
A decision object, not a bool: allowed plus a stable machine-readable
reason from reasons, plus human-oriented advisory warnings.
Fields§
§allowed: boolWhether the dispatch is permitted.
reason: &'static strStable machine-readable reason from reasons.
warnings: Vec<String>Human-oriented advisory messages (non-blocking).
Implementations§
Trait Implementations§
Source§impl Clone for SecurityDecision
impl Clone for SecurityDecision
Source§fn clone(&self) -> SecurityDecision
fn clone(&self) -> SecurityDecision
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 SecurityDecision
impl Debug for SecurityDecision
Source§impl PartialEq for SecurityDecision
impl PartialEq for SecurityDecision
Source§fn eq(&self, other: &SecurityDecision) -> bool
fn eq(&self, other: &SecurityDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SecurityDecision
impl StructuralPartialEq for SecurityDecision
Auto Trait Implementations§
impl Freeze for SecurityDecision
impl RefUnwindSafe for SecurityDecision
impl Send for SecurityDecision
impl Sync for SecurityDecision
impl Unpin for SecurityDecision
impl UnsafeUnpin for SecurityDecision
impl UnwindSafe for SecurityDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.