pub struct DocDataUint8Array {
pub value: Vec<u8>,
}
Expand description
Represents a byte array value for document data, mirroring JavaScript’s Uint8Array
.
This struct is useful for transporting raw binary data across the JSON boundary,
where it is serialized as { "__uint8array__": number[] }
(see custom serde impl).
§Fields
value
: The underlying bytes.
Fields§
§value: Vec<u8>
Trait Implementations§
Source§impl Clone for DocDataUint8Array
impl Clone for DocDataUint8Array
Source§fn clone(&self) -> DocDataUint8Array
fn clone(&self) -> DocDataUint8Array
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 Debug for DocDataUint8Array
impl Debug for DocDataUint8Array
Source§impl<'de> Deserialize<'de> for DocDataUint8Array
impl<'de> Deserialize<'de> for DocDataUint8Array
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 Display for DocDataUint8Array
impl Display for DocDataUint8Array
Source§impl Hash for DocDataUint8Array
impl Hash for DocDataUint8Array
Source§impl Ord for DocDataUint8Array
impl Ord for DocDataUint8Array
Source§fn cmp(&self, other: &DocDataUint8Array) -> Ordering
fn cmp(&self, other: &DocDataUint8Array) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DocDataUint8Array
impl PartialEq for DocDataUint8Array
Source§impl PartialOrd for DocDataUint8Array
impl PartialOrd for DocDataUint8Array
Source§impl Serialize for DocDataUint8Array
impl Serialize for DocDataUint8Array
impl Eq for DocDataUint8Array
impl StructuralPartialEq for DocDataUint8Array
Auto Trait Implementations§
impl Freeze for DocDataUint8Array
impl RefUnwindSafe for DocDataUint8Array
impl Send for DocDataUint8Array
impl Sync for DocDataUint8Array
impl Unpin for DocDataUint8Array
impl UnwindSafe for DocDataUint8Array
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