pub struct SecurityAdvisoryCvss {
pub score: f64,
pub vector_string: Option<String>,
}
Expand description
Details for the advisory pertaining to the Common Vulnerability Scoring System.
JSON schema
{
"title": "security_advisory cvss",
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",
"type": "object",
"required": [
"score",
"vector_string"
],
"properties": {
"score": {
"description": "The overall CVSS score of the advisory.",
"type": "number",
"maximum": 10.0,
"minimum": 0.0
},
"vector_string": {
"description": "The full CVSS vector string for the advisory.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§score: f64
§vector_string: Option<String>
The full CVSS vector string for the advisory.
Implementations§
Source§impl SecurityAdvisoryCvss
impl SecurityAdvisoryCvss
pub fn builder() -> SecurityAdvisoryCvss
Trait Implementations§
Source§impl Clone for SecurityAdvisoryCvss
impl Clone for SecurityAdvisoryCvss
Source§fn clone(&self) -> SecurityAdvisoryCvss
fn clone(&self) -> SecurityAdvisoryCvss
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 SecurityAdvisoryCvss
impl Debug for SecurityAdvisoryCvss
Source§impl<'de> Deserialize<'de> for SecurityAdvisoryCvss
impl<'de> Deserialize<'de> for SecurityAdvisoryCvss
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<&SecurityAdvisoryCvss> for SecurityAdvisoryCvss
impl From<&SecurityAdvisoryCvss> for SecurityAdvisoryCvss
Source§fn from(value: &SecurityAdvisoryCvss) -> Self
fn from(value: &SecurityAdvisoryCvss) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryCvss> for SecurityAdvisoryCvss
impl From<SecurityAdvisoryCvss> for SecurityAdvisoryCvss
Source§fn from(value: SecurityAdvisoryCvss) -> Self
fn from(value: SecurityAdvisoryCvss) -> Self
Converts to this type from the input type.
Source§impl Serialize for SecurityAdvisoryCvss
impl Serialize for SecurityAdvisoryCvss
Auto Trait Implementations§
impl Freeze for SecurityAdvisoryCvss
impl RefUnwindSafe for SecurityAdvisoryCvss
impl Send for SecurityAdvisoryCvss
impl Sync for SecurityAdvisoryCvss
impl Unpin for SecurityAdvisoryCvss
impl UnwindSafe for SecurityAdvisoryCvss
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