pub enum RiskTreatment {
Accept,
Mitigate,
Transfer,
Avoid,
}Expand description
Risk treatment labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RiskTreatment
impl Clone for RiskTreatment
Source§fn clone(&self) -> RiskTreatment
fn clone(&self) -> RiskTreatment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RiskTreatment
impl Debug for RiskTreatment
Source§impl Display for RiskTreatment
impl Display for RiskTreatment
Source§impl FromStr for RiskTreatment
impl FromStr for RiskTreatment
Source§type Err = SecurityRiskError
type Err = SecurityRiskError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<RiskTreatment, <RiskTreatment as FromStr>::Err>
fn from_str( input: &str, ) -> Result<RiskTreatment, <RiskTreatment as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for RiskTreatment
impl Hash for RiskTreatment
Source§impl Ord for RiskTreatment
impl Ord for RiskTreatment
Source§fn cmp(&self, other: &RiskTreatment) -> Ordering
fn cmp(&self, other: &RiskTreatment) -> Ordering
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
Source§impl PartialEq for RiskTreatment
impl PartialEq for RiskTreatment
Source§fn eq(&self, other: &RiskTreatment) -> bool
fn eq(&self, other: &RiskTreatment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RiskTreatment
impl PartialOrd for RiskTreatment
impl Copy for RiskTreatment
impl Eq for RiskTreatment
impl StructuralPartialEq for RiskTreatment
Auto Trait Implementations§
impl Freeze for RiskTreatment
impl RefUnwindSafe for RiskTreatment
impl Send for RiskTreatment
impl Sync for RiskTreatment
impl Unpin for RiskTreatment
impl UnsafeUnpin for RiskTreatment
impl UnwindSafe for RiskTreatment
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