Struct docker_api::ApiVersion
source · pub struct ApiVersion { /* private fields */ }
Expand description
Structure representing API version used to determine compatibility between a client and a server.
Implementations§
source§impl ApiVersion
impl ApiVersion
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 Display for ApiVersion
impl Display for ApiVersion
source§impl From<usize> for ApiVersion
impl From<usize> for ApiVersion
source§fn from(v: usize) -> ApiVersion
fn from(v: usize) -> ApiVersion
Converts to this type from the input type.
source§impl FromStr for ApiVersion
impl FromStr 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 moreimpl 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<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