Struct cargo_pants::coordinate::Coordinate
source · pub struct Coordinate {
pub purl: String,
pub description: String,
pub reference: String,
pub vulnerabilities: Vec<Vulnerability>,
}
Fields§
§purl: String
§description: String
§reference: String
§vulnerabilities: Vec<Vulnerability>
Implementations§
source§impl Coordinate
impl Coordinate
pub fn has_vulnerabilities(&self) -> bool
pub fn get_threat_score(&self) -> u8
Trait Implementations§
source§impl Debug for Coordinate
impl Debug for Coordinate
source§impl Default for Coordinate
impl Default for Coordinate
source§fn default() -> Coordinate
fn default() -> Coordinate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Coordinate
impl<'de> Deserialize<'de> for Coordinate
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 RefUnwindSafe for Coordinate
impl Send for Coordinate
impl Sync for Coordinate
impl Unpin for Coordinate
impl UnwindSafe for Coordinate
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