pub enum Verdict {
Candidate,
CandidateFailSafe {
problem: String,
},
PermissionUnrelated,
OutOfScope,
TargetNotOnPath,
SubjectMismatch,
SubjectUnresolved {
problem: String,
},
ConditionFalse,
ConditionUnresolved {
problem: String,
},
NotReached,
}Expand description
The fate of a grant during collection, in the order the engine checks.
Variants§
Candidate
Became a candidate.
CandidateFailSafe
deny that became a candidate even though the subject or the condition could not be evaluated.
The grant’s permission is not the requested one and does not grant it.
OutOfScope
The grant’s scope is not in the resource path.
TargetNotOnPath
The grant’s target matches no step of the path.
SubjectMismatch
SubjectUnresolved
allow discarded because the subject could not be evaluated (ReBAC without tuples, depth).
ConditionFalse
ConditionUnresolved
allow discarded because the condition could not be evaluated.
NotReached
An override decided before collection.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verdict
impl<'de> Deserialize<'de> for Verdict
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
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Forget for Verdict
impl Freeze for Verdict
impl Move for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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