pub enum RemediationValue {
Bool(bool),
Integer(i64),
Decimal(Decimal),
Text(String),
Enum(String),
Timestamp(Timestamp),
Duration(DurationMs),
List(Vec<RemediationValue>),
}Expand description
A scalar or list value in a remediation’s parameters: the subset of
OutValue (spec 002) a remediation can carry, in the same wire form.
Variants§
Bool(bool)
Integer(i64)
Decimal(Decimal)
Text(String)
Enum(String)
Timestamp(Timestamp)
Duration(DurationMs)
List(Vec<RemediationValue>)
Trait Implementations§
Source§impl Clone for RemediationValue
impl Clone for RemediationValue
Source§impl Debug for RemediationValue
impl Debug for RemediationValue
Source§impl<'de> Deserialize<'de> for RemediationValue
impl<'de> Deserialize<'de> for RemediationValue
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 RemediationValue
Source§impl JsonSchema for RemediationValue
impl JsonSchema for RemediationValue
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 Ord for RemediationValue
impl Ord for RemediationValue
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RemediationValue
impl PartialEq for RemediationValue
Source§impl PartialOrd for RemediationValue
impl PartialOrd for RemediationValue
Source§impl Serialize for RemediationValue
impl Serialize for RemediationValue
impl StructuralPartialEq for RemediationValue
Auto Trait Implementations§
impl Freeze for RemediationValue
impl RefUnwindSafe for RemediationValue
impl Send for RemediationValue
impl Sync for RemediationValue
impl Unpin for RemediationValue
impl UnsafeUnpin for RemediationValue
impl UnwindSafe for RemediationValue
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