Struct wasmrs_frames::RawPayload
source · 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 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 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 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