Struct bson::RawBinaryRef
source · pub struct RawBinaryRef<'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.
Implementations§
Trait Implementations§
source§impl<'a> Clone for RawBinaryRef<'a>
impl<'a> Clone for RawBinaryRef<'a>
source§fn clone(&self) -> RawBinaryRef<'a>
fn clone(&self) -> RawBinaryRef<'a>
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<'a> Debug for RawBinaryRef<'a>
impl<'a> Debug for RawBinaryRef<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for RawBinaryRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawBinaryRef<'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
source§impl<'a> From<RawBinaryRef<'a>> for RawBsonRef<'a>
impl<'a> From<RawBinaryRef<'a>> for RawBsonRef<'a>
source§fn from(b: RawBinaryRef<'a>) -> Self
fn from(b: RawBinaryRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq<RawBinaryRef<'a>> for RawBinaryRef<'a>
impl<'a> PartialEq<RawBinaryRef<'a>> for RawBinaryRef<'a>
source§fn eq(&self, other: &RawBinaryRef<'a>) -> bool
fn eq(&self, other: &RawBinaryRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.