pub struct RawPayload {
pub metadata: Option<Bytes>,
pub data: Option<Bytes>,
}
Expand description
A complete [Payload] object that includes metadata and data bytes.
Fields§
§metadata: Option<Bytes>
Metadata bytes if they exist.
data: Option<Bytes>
The core payload data bytes if it exists.
Implementations§
Trait Implementations§
Source§impl Clone for RawPayload
impl Clone for RawPayload
Source§fn clone(&self) -> RawPayload
fn clone(&self) -> RawPayload
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 RawPayload
impl Debug for RawPayload
Source§impl Default for RawPayload
impl Default for RawPayload
Source§fn default() -> RawPayload
fn default() -> RawPayload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RawPayload
impl RefUnwindSafe for RawPayload
impl Send for RawPayload
impl Sync for RawPayload
impl Unpin for RawPayload
impl UnwindSafe for RawPayload
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