#[non_exhaustive]pub enum BlockReason {
Constraint(ConstraintKind),
Mode {
risk: RiskClass,
},
ForbiddenRiskClass {
risk: RiskClass,
},
HumanReview,
}Expand description
Why a command may not run, when no card the end user can click would help.
Serializable so a reducer can put it in the details of the
DomainRejection the user’s client
receives: “blocked” is not an answer, “blocked because you said not to
submit” is.
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.
Constraint(ConstraintKind)
A constraint the user placed on the turn (§10.4).
Mode
The orchestration mode is not eligible for the risk class (§11.4).
ForbiddenRiskClass
The policy snapshot forbids the risk class outright.
HumanReview
Only a qualified human other than the end user may authorize this
(ConfirmationPolicy::HumanProfessionalReview).
Trait Implementations§
Source§impl Clone for BlockReason
impl Clone for BlockReason
Source§impl Debug for BlockReason
impl Debug for BlockReason
Source§impl<'de> Deserialize<'de> for BlockReason
impl<'de> Deserialize<'de> for BlockReason
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 BlockReason
Source§impl PartialEq for BlockReason
impl PartialEq for BlockReason
Source§impl Serialize for BlockReason
impl Serialize for BlockReason
impl StructuralPartialEq for BlockReason
Auto Trait Implementations§
impl Freeze for BlockReason
impl RefUnwindSafe for BlockReason
impl Send for BlockReason
impl Sync for BlockReason
impl Unpin for BlockReason
impl UnsafeUnpin for BlockReason
impl UnwindSafe for BlockReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.