pub struct UpgradeDistribution {
pub classification: Option<String>,
pub cpe_uri: Option<String>,
pub cve: Option<Vec<String>>,
pub severity: Option<String>,
}
Expand description
The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
This type is not used in any activity, and only used as part of another schema.
Fields§
§classification: Option<String>
The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
cpe_uri: Option<String>
Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
cve: Option<Vec<String>>
The cve tied to this Upgrade.
severity: Option<String>
The severity as specified by the upstream operating system.
Trait Implementations§
Source§impl Clone for UpgradeDistribution
impl Clone for UpgradeDistribution
Source§fn clone(&self) -> UpgradeDistribution
fn clone(&self) -> UpgradeDistribution
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpgradeDistribution
impl Debug for UpgradeDistribution
Source§impl Default for UpgradeDistribution
impl Default for UpgradeDistribution
Source§fn default() -> UpgradeDistribution
fn default() -> UpgradeDistribution
Source§impl<'de> Deserialize<'de> for UpgradeDistribution
impl<'de> Deserialize<'de> for UpgradeDistribution
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>,
Source§impl Serialize for UpgradeDistribution
impl Serialize for UpgradeDistribution
impl Part for UpgradeDistribution
Auto Trait Implementations§
impl Freeze for UpgradeDistribution
impl RefUnwindSafe for UpgradeDistribution
impl Send for UpgradeDistribution
impl Sync for UpgradeDistribution
impl Unpin for UpgradeDistribution
impl UnwindSafe for UpgradeDistribution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more