#[non_exhaustive]pub struct Evaluation {
pub decision: Decision,
pub denials: Vec<Decision>,
}Expand description
Everything Gate::evaluate_exhaustive found: the decision
Gate::evaluate returns, and every deny along the way.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.decision: DecisionEqual to Gate::evaluate on the same context.
denials: Vec<Decision>Every deny, in registration order: each check’s own Deny and, in
Mode::Closed, each deny the gate produced (an undecided required
check at its position, an unregistered requirement or the no-decision
deny alone). In closed mode the decision is a deny exactly when this is
non-empty, and is then its first element. In open mode an earlier
Some can decide before a listed deny is reached.
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§impl Debug for Evaluation
impl Debug for Evaluation
impl Eq for Evaluation
Source§impl PartialEq for Evaluation
impl PartialEq for Evaluation
impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Forget for Evaluation
impl Freeze for Evaluationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Decision>: Freeze,
impl Move for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluationwhere
RawVecInner: Send,
impl Sync for Evaluationwhere
RawVecInner: Sync,
impl Unpin for Evaluation
impl UnsafeUnpin for Evaluationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Decision>: UnsafeUnpin,
impl UnwindSafe for Evaluationwhere
RawVecInner: UnwindSafe,
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