pub struct VersionNumber(/* private fields */);Expand description
Sequential version number for agent releases
Implementations§
Source§impl VersionNumber
impl VersionNumber
pub fn try_new(raw_value: u64) -> Result<Self, VersionNumberError>
Source§impl VersionNumber
impl VersionNumber
pub fn into_inner(self) -> u64
Source§impl VersionNumber
impl VersionNumber
Trait Implementations§
Source§impl Clone for VersionNumber
impl Clone for VersionNumber
Source§fn clone(&self) -> VersionNumber
fn clone(&self) -> VersionNumber
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 moreimpl Copy for VersionNumber
Source§impl Debug for VersionNumber
impl Debug for VersionNumber
Source§impl<'de> Deserialize<'de> for VersionNumber
impl<'de> Deserialize<'de> for VersionNumber
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VersionNumber
impl Display for VersionNumber
impl Eq for VersionNumber
Source§impl From<VersionNumber> for u64
impl From<VersionNumber> for u64
Source§fn from(value: VersionNumber) -> Self
fn from(value: VersionNumber) -> Self
Converts to this type from the input type.
Source§impl Ord for VersionNumber
impl Ord for VersionNumber
Source§fn cmp(&self, other: &VersionNumber) -> Ordering
fn cmp(&self, other: &VersionNumber) -> 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 VersionNumber
impl PartialEq for VersionNumber
Source§fn eq(&self, other: &VersionNumber) -> bool
fn eq(&self, other: &VersionNumber) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VersionNumber
impl PartialOrd for VersionNumber
Source§impl Serialize for VersionNumber
impl Serialize for VersionNumber
impl StructuralPartialEq for VersionNumber
Auto Trait Implementations§
impl Freeze for VersionNumber
impl RefUnwindSafe for VersionNumber
impl Send for VersionNumber
impl Sync for VersionNumber
impl Unpin for VersionNumber
impl UnsafeUnpin for VersionNumber
impl UnwindSafe for VersionNumber
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more