pub struct Package {
pub cpe_uri: Option<String>,
pub package_name: Option<String>,
pub package_type: Option<String>,
pub package_version: Option<String>,
}Expand description
Package is a generic definition of a package.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cpe_uri: Option<String>The CPE URI where the vulnerability was detected.
package_name: Option<String>The name of the package where the vulnerability was detected.
package_type: Option<String>Type of package, for example, os, maven, or go.
package_version: Option<String>The version of the package.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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
impl Part for Package
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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