pub struct BinaryPayload {
pub data: Bytes,
pub format: BinaryFormat,
}
Expand description
Binary payload for efficient serialization formats
Fields§
§data: Bytes
Raw binary data
format: BinaryFormat
Binary format identifier
Trait Implementations§
Source§impl Clone for BinaryPayload
impl Clone for BinaryPayload
Source§fn clone(&self) -> BinaryPayload
fn clone(&self) -> BinaryPayload
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 moreAuto Trait Implementations§
impl !Freeze for BinaryPayload
impl RefUnwindSafe for BinaryPayload
impl Send for BinaryPayload
impl Sync for BinaryPayload
impl Unpin for BinaryPayload
impl UnwindSafe for BinaryPayload
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