pub struct HexBytesInner(/* private fields */);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 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<'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.
Auto Trait Implementations§
impl Freeze for HexBytesInner
impl RefUnwindSafe for HexBytesInner
impl Send for HexBytesInner
impl Sync for HexBytesInner
impl Unpin for HexBytesInner
impl UnwindSafe for HexBytesInner
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