pub enum UserInteraction {
None,
Required,
}Expand description
The User Interaction field as defined by the CVSS specification.
Variants§
None
None (“UI:N”) value for the User Interaction field.
Required
Required (“UI:R”) value for the User Interaction field.
Implementations§
Source§impl UserInteraction
impl UserInteraction
Sourcepub fn numerical_value(&self) -> f64
pub fn numerical_value(&self) -> f64
Provides the numerical value associated with the metric, as specified by the CVSS specification.
In normal usage you should not need to call this yourself.
Trait Implementations§
Source§impl Clone for UserInteraction
impl Clone for UserInteraction
Source§fn clone(&self) -> UserInteraction
fn clone(&self) -> UserInteraction
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 UserInteraction
impl Debug for UserInteraction
Source§impl<'de> Deserialize<'de> for UserInteraction
impl<'de> Deserialize<'de> for UserInteraction
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 Display for UserInteraction
impl Display for UserInteraction
Source§impl PartialEq for UserInteraction
impl PartialEq for UserInteraction
Source§impl Serialize for UserInteraction
impl Serialize for UserInteraction
impl Copy for UserInteraction
impl StructuralPartialEq for UserInteraction
Auto Trait Implementations§
impl Freeze for UserInteraction
impl RefUnwindSafe for UserInteraction
impl Send for UserInteraction
impl Sync for UserInteraction
impl Unpin for UserInteraction
impl UnwindSafe for UserInteraction
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