pub enum DenialReason {
OperationNotAllowed(String),
ConstraintViolated(Constraint),
}Expand description
Why an operation was denied.
Variants§
OperationNotAllowed(String)
Operation not in allowed list.
ConstraintViolated(Constraint)
Constraint violated.
Trait Implementations§
Source§impl Clone for DenialReason
impl Clone for DenialReason
Source§fn clone(&self) -> DenialReason
fn clone(&self) -> DenialReason
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 moreAuto Trait Implementations§
impl Freeze for DenialReason
impl RefUnwindSafe for DenialReason
impl Send for DenialReason
impl Sync for DenialReason
impl Unpin for DenialReason
impl UnsafeUnpin for DenialReason
impl UnwindSafe for DenialReason
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