pub struct SoftwareVersion {
pub application: Version,
pub library: Version,
}Expand description
Struct representing the version information of both application and library.
Fields§
§application: VersionVersion of the application.
library: VersionVersion of the library.
Implementations§
Source§impl SoftwareVersion
impl SoftwareVersion
Sourcepub fn new(
application_version: &str,
library_version: &str,
channel: VersionCode,
) -> Self
pub fn new( application_version: &str, library_version: &str, channel: VersionCode, ) -> Self
Creates a new SoftwareVersion instance from given version strings.
Sourcepub fn compare_versions(&self, incoming: &SoftwareVersion) -> bool
pub fn compare_versions(&self, incoming: &SoftwareVersion) -> bool
Compares the application and library versions with an incoming SoftwareVersion.
Use at your own risk.
Trait Implementations§
Source§impl Clone for SoftwareVersion
impl Clone for SoftwareVersion
Source§fn clone(&self) -> SoftwareVersion
fn clone(&self) -> SoftwareVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SoftwareVersion
impl Debug for SoftwareVersion
Source§impl<'de> Deserialize<'de> for SoftwareVersion
impl<'de> Deserialize<'de> for SoftwareVersion
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 Display for SoftwareVersion
impl Display for SoftwareVersion
impl Eq for SoftwareVersion
Source§impl Hash for SoftwareVersion
impl Hash for SoftwareVersion
Source§impl Ord for SoftwareVersion
impl Ord for SoftwareVersion
Source§fn cmp(&self, other: &SoftwareVersion) -> Ordering
fn cmp(&self, other: &SoftwareVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SoftwareVersion
impl PartialEq for SoftwareVersion
Source§fn eq(&self, other: &SoftwareVersion) -> bool
fn eq(&self, other: &SoftwareVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SoftwareVersion
impl PartialOrd for SoftwareVersion
Source§impl Serialize for SoftwareVersion
impl Serialize for SoftwareVersion
impl StructuralPartialEq for SoftwareVersion
Auto Trait Implementations§
impl Freeze for SoftwareVersion
impl RefUnwindSafe for SoftwareVersion
impl Send for SoftwareVersion
impl Sync for SoftwareVersion
impl Unpin for SoftwareVersion
impl UnsafeUnpin for SoftwareVersion
impl UnwindSafe for SoftwareVersion
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.