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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)