pub struct RawBinary<'a> {
pub subtype: BinarySubtype,
pub bytes: &'a [u8],
}
Expand description
A BSON binary value referencing raw bytes stored elsewhere.
Fields§
§subtype: BinarySubtype
The subtype of the binary value.
bytes: &'a [u8]
The binary bytes.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for RawBinary<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawBinary<'a>
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
impl<'a> Copy for RawBinary<'a>
impl<'a> StructuralPartialEq for RawBinary<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawBinary<'a>
impl<'a> RefUnwindSafe for RawBinary<'a>
impl<'a> Send for RawBinary<'a>
impl<'a> Sync for RawBinary<'a>
impl<'a> Unpin for RawBinary<'a>
impl<'a> UnwindSafe for RawBinary<'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