pub struct VersionRef(pub String);Expand description
Version reference for a component or metadata record.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl AsRef<str> for VersionRef
impl AsRef<str> for VersionRef
Source§impl Clone for VersionRef
impl Clone for VersionRef
Source§fn clone(&self) -> VersionRef
fn clone(&self) -> VersionRef
Returns a duplicate 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 VersionRef
impl Debug for VersionRef
Source§impl<'de> Deserialize<'de> for VersionRef
impl<'de> Deserialize<'de> for VersionRef
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 VersionRef
impl Display for VersionRef
Source§impl From<VersionRef> for String
impl From<VersionRef> for String
Source§fn from(value: VersionRef) -> Self
fn from(value: VersionRef) -> Self
Converts to this type from the input type.
Source§impl FromStr for VersionRef
impl FromStr for VersionRef
Source§impl Hash for VersionRef
impl Hash for VersionRef
Source§impl Ord for VersionRef
impl Ord for VersionRef
Source§fn cmp(&self, other: &VersionRef) -> Ordering
fn cmp(&self, other: &VersionRef) -> 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 for VersionRef
impl PartialEq for VersionRef
Source§impl PartialOrd for VersionRef
impl PartialOrd for VersionRef
Source§impl Serialize for VersionRef
impl Serialize for VersionRef
Source§impl TryFrom<&str> for VersionRef
impl TryFrom<&str> for VersionRef
Source§impl TryFrom<String> for VersionRef
impl TryFrom<String> for VersionRef
impl Eq for VersionRef
impl StructuralPartialEq for VersionRef
Auto Trait Implementations§
impl Freeze for VersionRef
impl RefUnwindSafe for VersionRef
impl Send for VersionRef
impl Sync for VersionRef
impl Unpin for VersionRef
impl UnwindSafe for VersionRef
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
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.