pub struct VersionRef {
pub kind: String,
pub id: String,
pub version: u64,
}Expand description
A concrete published version reference.
Fields§
§kind: String§id: String§version: u64Trait Implementations§
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 (const: unstable) · 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<VersionRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VersionRef
Source§impl Hash for VersionRef
impl Hash for VersionRef
Source§impl PartialEq for VersionRef
impl PartialEq for VersionRef
Source§fn eq(&self, other: &VersionRef) -> bool
fn eq(&self, other: &VersionRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VersionRef
impl Serialize for VersionRef
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 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 UnsafeUnpin 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<B, K> ContainerWithHash<B> for K
impl<B, K> ContainerWithHash<B> for K
fn as_dyn_hash(&self) -> &(dyn DynHash + 'static)
fn as_container(&self) -> &<B as Bounds>::Container
fn as_mut_container(&mut self) -> &mut <B as Bounds>::Container
fn into_box_container(self: Box<K>) -> Box<<B as Bounds>::Container>
impl<B, K> ContainerWithHashAndClone<B> for K
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.