Struct serde_amqp::primitives::BinaryRef
source · pub struct BinaryRef<'a>(pub &'a [u8]);
Expand description
A wrapper over [&[u8]
] that allows serialize as an AMQP Binary type and provide custom
implementation for LowerHex
and UpperHex
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
source§impl<'de> Deserialize<'de> for BinaryRef<'de>
impl<'de> Deserialize<'de> for BinaryRef<'de>
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
Auto Trait Implementations§
impl<'a> Freeze for BinaryRef<'a>
impl<'a> RefUnwindSafe for BinaryRef<'a>
impl<'a> Send for BinaryRef<'a>
impl<'a> Sync for BinaryRef<'a>
impl<'a> Unpin for BinaryRef<'a>
impl<'a> UnwindSafe for BinaryRef<'a>
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