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
sourceimpl<'de: 'a, 'a> Deserialize<'de> for RawBinary<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawBinary<'a>
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more