pub struct MitigationsItem {
pub description: String,
pub effectiveness: Option<String>,
pub effectiveness_notes: Option<String>,
pub mitigation_id: Option<String>,
pub phase: Vec<String>,
pub strategy: Option<String>,
}
Expand description
MitigationsItem
JSON schema
{
"type": "object",
"required": [
"Description"
],
"properties": {
"Description": {
"examples": [
"A brief description on the mitigation"
],
"type": "string"
},
"Effectiveness": {
"examples": [
"High"
],
"type": "string"
},
"EffectivenessNotes": {
"examples": [
"A brief example on the effectiveness of the mitigation"
],
"type": "string"
},
"MitigationID": {
"examples": [
"MIT-5"
],
"type": "string"
},
"Phase": {
"examples": [
[
"Architecture and Design",
"Implementation"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"Strategy": {
"examples": [
"Parameterization"
],
"type": "string"
}
},
"additionalProperties": false
}
Fields§
§description: String
§effectiveness: Option<String>
§effectiveness_notes: Option<String>
§mitigation_id: Option<String>
§phase: Vec<String>
§strategy: Option<String>
Trait Implementations§
Source§impl Clone for MitigationsItem
impl Clone for MitigationsItem
Source§fn clone(&self) -> MitigationsItem
fn clone(&self) -> MitigationsItem
Returns a duplicate of the value. Read more
1.0.0 · 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 MitigationsItem
impl Debug for MitigationsItem
Source§impl<'de> Deserialize<'de> for MitigationsItem
impl<'de> Deserialize<'de> for MitigationsItem
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
Source§impl From<&MitigationsItem> for MitigationsItem
impl From<&MitigationsItem> for MitigationsItem
Source§fn from(value: &MitigationsItem) -> Self
fn from(value: &MitigationsItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MitigationsItem
impl RefUnwindSafe for MitigationsItem
impl Send for MitigationsItem
impl Sync for MitigationsItem
impl Unpin for MitigationsItem
impl UnwindSafe for MitigationsItem
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