Struct omaha_client::protocol::response::UpdateCheck
source · pub struct UpdateCheck {
pub status: OmahaStatus,
pub info: Option<String>,
pub urls: Option<URLs>,
pub manifest: Option<Manifest>,
pub extra_attributes: Map<String, Value>,
}
Fields§
§status: OmahaStatus
Whether there’s an update available.
info: Option<String>
More information about the status.
urls: Option<URLs>
The base URL of all the packages in this app.
manifest: Option<Manifest>
The manifest about the update.
extra_attributes: Map<String, Value>
Possibly contains whether urgent_update is specified or realm_id.
Implementations§
source§impl UpdateCheck
impl UpdateCheck
pub fn ok(urls: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn no_update() -> Self
sourcepub fn get_all_url_codebases(&self) -> impl Iterator<Item = &str>
pub fn get_all_url_codebases(&self) -> impl Iterator<Item = &str>
Returns an iterator of all url codebases in this updatecheck
.
sourcepub fn get_all_packages(&self) -> impl Iterator<Item = &Package>
pub fn get_all_packages(&self) -> impl Iterator<Item = &Package>
Returns an iterator of all packages in this updatecheck
.
sourcepub fn get_all_full_urls(&self) -> impl Iterator<Item = String> + '_
pub fn get_all_full_urls(&self) -> impl Iterator<Item = String> + '_
Returns an iterator of all full urls in this updatecheck
.
Trait Implementations§
source§impl Clone for UpdateCheck
impl Clone for UpdateCheck
source§fn clone(&self) -> UpdateCheck
fn clone(&self) -> UpdateCheck
Returns a copy 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 UpdateCheck
impl Debug for UpdateCheck
source§impl Default for UpdateCheck
impl Default for UpdateCheck
source§fn default() -> UpdateCheck
fn default() -> UpdateCheck
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdateCheck
impl<'de> Deserialize<'de> for UpdateCheck
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 PartialEq for UpdateCheck
impl PartialEq for UpdateCheck
source§fn eq(&self, other: &UpdateCheck) -> bool
fn eq(&self, other: &UpdateCheck) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateCheck
Auto Trait Implementations§
impl Freeze for UpdateCheck
impl RefUnwindSafe for UpdateCheck
impl Send for UpdateCheck
impl Sync for UpdateCheck
impl Unpin for UpdateCheck
impl UnwindSafe for UpdateCheck
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