pub enum BytesEncoding {
Base16,
Base58,
Base64,
Utf8,
}
Variants§
Trait Implementations§
Source§impl Clone for BytesEncoding
impl Clone for BytesEncoding
Source§fn clone(&self) -> BytesEncoding
fn clone(&self) -> BytesEncoding
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 BytesEncoding
impl Debug for BytesEncoding
Source§impl<'de> Deserialize<'de> for BytesEncoding
impl<'de> Deserialize<'de> for BytesEncoding
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BytesEncoding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BytesEncoding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BytesEncoding
impl PartialEq for BytesEncoding
Source§impl Serialize for BytesEncoding
impl Serialize for BytesEncoding
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
Source§impl TryFrom<&str> for BytesEncoding
impl TryFrom<&str> for BytesEncoding
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> Result<BytesEncoding, CodamaError>
fn try_from(value: &str) -> Result<BytesEncoding, CodamaError>
Performs the conversion.
Source§impl TryFrom<String> for BytesEncoding
impl TryFrom<String> for BytesEncoding
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(value: String) -> Result<BytesEncoding, CodamaError>
fn try_from(value: String) -> Result<BytesEncoding, CodamaError>
Performs the conversion.
impl Copy for BytesEncoding
impl Eq for BytesEncoding
impl StructuralPartialEq for BytesEncoding
Auto Trait Implementations§
impl Freeze for BytesEncoding
impl RefUnwindSafe for BytesEncoding
impl Send for BytesEncoding
impl Sync for BytesEncoding
impl Unpin for BytesEncoding
impl UnwindSafe for BytesEncoding
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> 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.