pub enum ApprovalsError {
MalformedTaskType {
task_type: String,
},
MissingApproverSet {
task_type: String,
},
ApproverSetOnReauth {
task_type: String,
approver_set: String,
},
UnknownApproverSet {
task_type: String,
approver_set: String,
},
EmptyApproverSet {
approver_set: String,
},
ThresholdExceedsSet {
task_type: String,
approver_set: String,
min_approvals: u32,
members: usize,
},
OverlappingRules {
task_type: String,
},
ConsentFieldOnReauth {
task_type: String,
field: &'static str,
},
}Expand description
Why a declarative approvals model was refused.
Every variant is a write-time refusal. The point is that an
unsatisfiable rule is caught when an operator writes it, not discovered by
the first caller it blocks — which is how a delegated step-up floor with
no approver used to fail.
Variants§
MalformedTaskType
MissingApproverSet
ApproverSetOnReauth
UnknownApproverSet
EmptyApproverSet
ThresholdExceedsSet
OverlappingRules
ConsentFieldOnReauth
Trait Implementations§
Source§impl Clone for ApprovalsError
impl Clone for ApprovalsError
Source§fn clone(&self) -> ApprovalsError
fn clone(&self) -> ApprovalsError
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 moreSource§impl Debug for ApprovalsError
impl Debug for ApprovalsError
Source§impl Display for ApprovalsError
impl Display for ApprovalsError
impl Eq for ApprovalsError
Source§impl Error for ApprovalsError
impl Error for ApprovalsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ApprovalsError
impl PartialEq for ApprovalsError
impl StructuralPartialEq for ApprovalsError
Auto Trait Implementations§
impl Freeze for ApprovalsError
impl RefUnwindSafe for ApprovalsError
impl Send for ApprovalsError
impl Sync for ApprovalsError
impl Unpin for ApprovalsError
impl UnsafeUnpin for ApprovalsError
impl UnwindSafe for ApprovalsError
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