pub struct UpgradeOccurrence {
pub distribution: Option<UpgradeDistribution>,
pub package: Option<String>,
pub parsed_version: Option<Version>,
pub windows_update: Option<WindowsUpdate>,
}
Expand description
An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). For Windows, both distribution and windows_update contain information for the Windows update.
This type is not used in any activity, and only used as part of another schema.
Fields§
§distribution: Option<UpgradeDistribution>
Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
package: Option<String>
Required for non-Windows OS. The package this Upgrade is for.
parsed_version: Option<Version>
Required for non-Windows OS. The version of the package in a machine + human readable form.
windows_update: Option<WindowsUpdate>
Required for Windows OS. Represents the metadata about the Windows update.
Trait Implementations§
Source§impl Clone for UpgradeOccurrence
impl Clone for UpgradeOccurrence
Source§fn clone(&self) -> UpgradeOccurrence
fn clone(&self) -> UpgradeOccurrence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpgradeOccurrence
impl Debug for UpgradeOccurrence
Source§impl Default for UpgradeOccurrence
impl Default for UpgradeOccurrence
Source§fn default() -> UpgradeOccurrence
fn default() -> UpgradeOccurrence
Source§impl<'de> Deserialize<'de> for UpgradeOccurrence
impl<'de> Deserialize<'de> for UpgradeOccurrence
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 UpgradeOccurrence
impl Serialize for UpgradeOccurrence
impl Part for UpgradeOccurrence
Auto Trait Implementations§
impl Freeze for UpgradeOccurrence
impl RefUnwindSafe for UpgradeOccurrence
impl Send for UpgradeOccurrence
impl Sync for UpgradeOccurrence
impl Unpin for UpgradeOccurrence
impl UnwindSafe for UpgradeOccurrence
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