Struct openstack::common::ApiVersion
source · pub struct ApiVersion(pub u16, pub u16);
Expand description
API version (major, minor).
Tuple Fields§
§0: u16
§1: u16
Trait Implementations§
source§impl Clone for ApiVersion
impl Clone for ApiVersion
source§fn clone(&self) -> ApiVersion
fn clone(&self) -> ApiVersion
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 ApiVersion
impl Debug for ApiVersion
source§impl<'de> Deserialize<'de> for ApiVersion
impl<'de> Deserialize<'de> for ApiVersion
source§fn deserialize<D>(
deserializer: D
) -> Result<ApiVersion, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ApiVersion, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ApiVersion
impl Display for ApiVersion
source§impl FromStr for ApiVersion
impl FromStr for ApiVersion
source§impl Hash for ApiVersion
impl Hash for ApiVersion
source§impl Ord for ApiVersion
impl Ord for ApiVersion
source§fn cmp(&self, other: &ApiVersion) -> Ordering
fn cmp(&self, other: &ApiVersion) -> Ordering
1.21.0 · 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<ApiVersion> for ApiVersion
impl PartialEq<ApiVersion> for ApiVersion
source§fn eq(&self, other: &ApiVersion) -> bool
fn eq(&self, other: &ApiVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ApiVersion> for ApiVersion
impl PartialOrd<ApiVersion> for ApiVersion
source§fn partial_cmp(&self, other: &ApiVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &ApiVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ApiVersion
impl Serialize for ApiVersion
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ApiVersion
impl Eq for ApiVersion
impl StructuralEq for ApiVersion
impl StructuralPartialEq for ApiVersion
Auto Trait Implementations§
impl RefUnwindSafe for ApiVersion
impl Send for ApiVersion
impl Sync for ApiVersion
impl Unpin for ApiVersion
impl UnwindSafe for ApiVersion
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.