#[non_exhaustive]pub enum CheckOutcome {
Allow {
rule: Option<usize>,
},
Deny {
reason: String,
rule: Option<usize>,
},
Ask {
approver: Approver,
rule: AskRule,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Allow
Deny
Ask
The call may run once approver approves it. A call that cannot be put to
them is denied, with the denial_reason a deny gives.
Auto Trait Implementations§
impl Forget for CheckOutcome
impl Freeze for CheckOutcome
impl RefUnwindSafe for CheckOutcome
impl Send for CheckOutcome
impl Sync for CheckOutcome
impl Unpin for CheckOutcome
impl UnsafeUnpin for CheckOutcome
impl UnwindSafe for CheckOutcome
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