Struct vsdb::VersionName
source · pub struct VersionName<'a>(pub &'a [u8]);Expand description
Avoid making mistakes between branch name and version name.
Tuple Fields§
§0: &'a [u8]Trait Implementations§
source§impl<'a> Clone for VersionName<'a>
impl<'a> Clone for VersionName<'a>
source§fn clone(&self) -> VersionName<'a>
fn clone(&self) -> VersionName<'a>
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<'a> Debug for VersionName<'a>
impl<'a> Debug for VersionName<'a>
source§impl<'de, 'a> Deserialize<'de> for VersionName<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for VersionName<'a>where 'de: 'a,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<VersionName<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<VersionName<'a>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a [u8]> for VersionName<'a>
impl<'a> From<&'a [u8]> for VersionName<'a>
source§fn from(t: &'a [u8]) -> VersionName<'a>
fn from(t: &'a [u8]) -> VersionName<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a String> for VersionName<'a>
impl<'a> From<&'a String> for VersionName<'a>
source§fn from(t: &'a String) -> VersionName<'a>
fn from(t: &'a String) -> VersionName<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a VersionNameOwned> for VersionName<'a>
impl<'a> From<&'a VersionNameOwned> for VersionName<'a>
source§fn from(b: &'a VersionNameOwned) -> VersionName<'a>
fn from(b: &'a VersionNameOwned) -> VersionName<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a str> for VersionName<'a>
impl<'a> From<&'a str> for VersionName<'a>
source§fn from(t: &'a str) -> VersionName<'a>
fn from(t: &'a str) -> VersionName<'a>
Converts to this type from the input type.
source§impl From<VersionName<'_>> for VersionNameOwned
impl From<VersionName<'_>> for VersionNameOwned
source§fn from(b: VersionName<'_>) -> VersionNameOwned
fn from(b: VersionName<'_>) -> VersionNameOwned
Converts to this type from the input type.
source§impl<'a> PartialEq<VersionName<'a>> for VersionName<'a>
impl<'a> PartialEq<VersionName<'a>> for VersionName<'a>
source§fn eq(&self, other: &VersionName<'a>) -> bool
fn eq(&self, other: &VersionName<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> Serialize for VersionName<'a>
impl<'a> Serialize for VersionName<'a>
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<'a> Copy for VersionName<'a>
impl<'a> Eq for VersionName<'a>
impl<'a> StructuralEq for VersionName<'a>
impl<'a> StructuralPartialEq for VersionName<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for VersionName<'a>
impl<'a> Send for VersionName<'a>
impl<'a> Sync for VersionName<'a>
impl<'a> Unpin for VersionName<'a>
impl<'a> UnwindSafe for VersionName<'a>
Blanket Implementations§
source§impl<T> KeyDe for Twhere
T: DeserializeOwned,
impl<T> KeyDe for Twhere T: DeserializeOwned,
source§fn decode_key(bytes: &[u8]) -> Result<Self>
fn decode_key(bytes: &[u8]) -> Result<Self>
Decode from bytes to the original key type.
source§impl<T> KeyEn for Twhere
T: Serialize,
impl<T> KeyEn for Twhere T: Serialize,
source§fn try_encode_key(&self) -> Result<RawBytes>
fn try_encode_key(&self) -> Result<RawBytes>
Encode original key type to bytes.
fn encode_key(&self) -> RawBytes
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ValueDe for Twhere
T: DeserializeOwned,
impl<T> ValueDe for Twhere T: DeserializeOwned,
source§fn decode_value(bytes: &[u8]) -> Result<Self>
fn decode_value(bytes: &[u8]) -> Result<Self>
Decode from bytes to the original key type.
source§impl<T> ValueEn for Twhere
T: Serialize,
impl<T> ValueEn for Twhere T: Serialize,
source§fn try_encode_value(&self) -> Result<RawBytes>
fn try_encode_value(&self) -> Result<RawBytes>
Encode original key type to bytes.