Struct dacite::core::Version
[−]
[src]
pub struct Version { pub major: u32, pub minor: u32, pub patch: u32, }
Fields
major: u32
minor: u32
patch: u32
Methods
impl Version
[src]
fn from_api_version(version: u32) -> Self
[src]
fn from_optional_api_version(version: u32) -> Option<Self>
[src]
fn as_api_version(&self) -> u32
[src]
fn api_version_from_optional(version: Option<Version>) -> u32
[src]
Trait Implementations
impl Debug for Version
[src]
impl Copy for Version
[src]
impl Clone for Version
[src]
fn clone(&self) -> Version
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Version
[src]
fn eq(&self, __arg_0: &Version) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Version) -> bool
[src]
This method tests for !=
.
impl Eq for Version
[src]
impl Hash for Version
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more