pub struct SerializedPayload {
pub content_type: String,
pub format_indicator: FormatIndicator,
pub payload: Vec<u8>,
}
Expand description
Struct that specifies the content type, format indicator, and payload for a serialized payload.
Fields§
§content_type: String
The content type of the payload
format_indicator: FormatIndicator
The format indicator of the payload
payload: Vec<u8>
The payload as a serialized byte vector
Trait Implementations§
Source§impl Clone for SerializedPayload
impl Clone for SerializedPayload
Source§fn clone(&self) -> SerializedPayload
fn clone(&self) -> SerializedPayload
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 SerializedPayload
impl Debug for SerializedPayload
Source§impl Default for SerializedPayload
impl Default for SerializedPayload
Source§fn default() -> SerializedPayload
fn default() -> SerializedPayload
Returns the “default value” for a type. Read more
Source§impl PartialEq for SerializedPayload
impl PartialEq for SerializedPayload
impl StructuralPartialEq for SerializedPayload
Auto Trait Implementations§
impl Freeze for SerializedPayload
impl RefUnwindSafe for SerializedPayload
impl Send for SerializedPayload
impl Sync for SerializedPayload
impl Unpin for SerializedPayload
impl UnwindSafe for SerializedPayload
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