pub enum Outcome {
Allow,
Reject {
reason: String,
},
Freeze {
reason: String,
},
}Expand description
What one policy decides about one subject.
Deny-only: no variant grants. An empty policy set — or a subject no
policy applies to — permits everything by the absence of any Outcome
at all, never by one of these variants saying so.
Variants§
Allow
This policy has nothing to say against the subject.
Reject
This policy refuses the subject. reason is authored by the policy
itself, since the policy is the only thing that knows which parts of
its input are safe to surface to the caller.
Freeze
This policy refuses the subject and judges the account unfit to keep writing until an operator intervenes.
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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
Checks if this value is equivalent to the given key. Read more
§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.