pub enum HandlerAction {
Propagate,
Escalate {
reason: String,
},
AsUnmet,
PropagateWith {
remediation: Option<RemediationUse>,
address: Address,
},
NeedsInput {
fields: Vec<String>,
questions: QuestionSelection,
},
}Variants§
Propagate
The judgment is the target’s unresolved reason.
Escalate
AsUnmet
Atomic conditions reading the target are false; a rule whose outcome reads it does not match.
PropagateWith
propagate with a declared remediation or address override (spec
033, 3.5.5).
NeedsInput
The caller is asked for these fields (spec 033, 3.7).
Trait Implementations§
Source§impl Clone for HandlerAction
impl Clone for HandlerAction
Source§impl Debug for HandlerAction
impl Debug for HandlerAction
Source§impl<'de> Deserialize<'de> for HandlerAction
impl<'de> Deserialize<'de> for HandlerAction
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 HandlerAction
Source§impl JsonSchema for HandlerAction
impl JsonSchema for HandlerAction
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 HandlerAction
impl PartialEq for HandlerAction
Source§impl Serialize for HandlerAction
impl Serialize for HandlerAction
impl StructuralPartialEq for HandlerAction
Auto Trait Implementations§
impl Freeze for HandlerAction
impl RefUnwindSafe for HandlerAction
impl Send for HandlerAction
impl Sync for HandlerAction
impl Unpin for HandlerAction
impl UnsafeUnpin for HandlerAction
impl UnwindSafe for HandlerAction
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