Struct stdcode::HexBytesInner
source · #[repr(transparent)]pub struct HexBytesInner(_);
Expand description
A bytevector that serializes as a bytevector for binary formats (like stdcode), but as hex for string formats (like JSON).
Does not have an ergonomic interface for using directly. Instead, use HexBytes, which is a serde_with adapter.
Trait Implementations§
source§impl Clone for HexBytesInner
impl Clone for HexBytesInner
source§fn clone(&self) -> HexBytesInner
fn clone(&self) -> HexBytesInner
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<'de> Deserialize<'de> for HexBytesInner
impl<'de> Deserialize<'de> for HexBytesInner
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 From<HexBytesInner> for Bytes
impl From<HexBytesInner> for Bytes
source§fn from(t: HexBytesInner) -> Self
fn from(t: HexBytesInner) -> Self
Converts to this type from the input type.
source§impl From<HexBytesInner> for Vec<u8>
impl From<HexBytesInner> for Vec<u8>
source§fn from(t: HexBytesInner) -> Self
fn from(t: HexBytesInner) -> Self
Converts to this type from the input type.