pub enum Consequence {
Refuse {
remediation: RemediationUse,
address: Address,
},
DropField {
notice: String,
address: Address,
},
Relax {
group: String,
notice: String,
address: Address,
},
DowngradeGrade {
to: Grade,
notice: String,
address: Address,
},
Abstain,
Escalate {
reason: String,
},
ContinueWithNotice {
notice: String,
address: Address,
},
}Expand description
What a failed check does (3.3). refuse, abstain and escalate are
terminal; the others are field-level.
Variants§
Implementations§
Source§impl Consequence
impl Consequence
Trait Implementations§
Source§impl Clone for Consequence
impl Clone for Consequence
Source§impl Debug for Consequence
impl Debug for Consequence
Source§impl<'de> Deserialize<'de> for Consequence
impl<'de> Deserialize<'de> for Consequence
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 Consequence
Source§impl JsonSchema for Consequence
impl JsonSchema for Consequence
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Consequence
impl PartialEq for Consequence
Source§impl Serialize for Consequence
impl Serialize for Consequence
impl StructuralPartialEq for Consequence
Auto Trait Implementations§
impl Freeze for Consequence
impl RefUnwindSafe for Consequence
impl Send for Consequence
impl Sync for Consequence
impl Unpin for Consequence
impl UnsafeUnpin for Consequence
impl UnwindSafe for Consequence
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