pub struct OtaManifest {
pub app_id: String,
pub updates: Vec<OtaUpdate>,
}Expand description
Manifest listing available OTA updates for an app.
Fields§
§app_id: String§updates: Vec<OtaUpdate>Implementations§
Source§impl OtaManifest
impl OtaManifest
pub fn new(app_id: impl Into<String>) -> Self
Sourcepub fn latest_update(
&self,
current_native: &BundleVersion,
platform: BuildTarget,
) -> Option<&OtaUpdate>
pub fn latest_update( &self, current_native: &BundleVersion, platform: BuildTarget, ) -> Option<&OtaUpdate>
Find the latest compatible update for the given native version and platform.
Sourcepub fn has_update_for(
&self,
current_bundle: &BundleVersion,
current_native: &BundleVersion,
platform: BuildTarget,
) -> bool
pub fn has_update_for( &self, current_bundle: &BundleVersion, current_native: &BundleVersion, platform: BuildTarget, ) -> bool
Check if an update is available for the given version.
Trait Implementations§
Source§impl Clone for OtaManifest
impl Clone for OtaManifest
Source§fn clone(&self) -> OtaManifest
fn clone(&self) -> OtaManifest
Returns a duplicate 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 OtaManifest
impl Debug for OtaManifest
Source§impl<'de> Deserialize<'de> for OtaManifest
impl<'de> Deserialize<'de> for OtaManifest
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
Auto Trait Implementations§
impl Freeze for OtaManifest
impl RefUnwindSafe for OtaManifest
impl Send for OtaManifest
impl Sync for OtaManifest
impl Unpin for OtaManifest
impl UnsafeUnpin for OtaManifest
impl UnwindSafe for OtaManifest
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