pub struct Mitigation {
pub description: String,
pub effort: String,
pub risk_reduction: f64,
}Expand description
A suggested mitigation.
Fields§
§description: StringDescription of the mitigation.
effort: StringEstimated effort.
risk_reduction: f64How much this reduces risk (0.0 - 1.0).
Trait Implementations§
Source§impl Clone for Mitigation
impl Clone for Mitigation
Source§fn clone(&self) -> Mitigation
fn clone(&self) -> Mitigation
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 Mitigation
impl Debug for Mitigation
Source§impl<'de> Deserialize<'de> for Mitigation
impl<'de> Deserialize<'de> for Mitigation
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
Auto Trait Implementations§
impl Freeze for Mitigation
impl RefUnwindSafe for Mitigation
impl Send for Mitigation
impl Sync for Mitigation
impl Unpin for Mitigation
impl UnsafeUnpin for Mitigation
impl UnwindSafe for Mitigation
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