pub struct CmdPayload {
pub id: String,
pub name: Option<String>,
pub payload: Value,
}Fields§
§id: StringCorrelation ID — the ack must carry the same value.
name: Option<String>Optional command name for routing on the WASM side.
payload: ValueArbitrary JSON payload.
Implementations§
Trait Implementations§
Source§impl Clone for CmdPayload
impl Clone for CmdPayload
Source§fn clone(&self) -> CmdPayload
fn clone(&self) -> CmdPayload
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 CmdPayload
impl Debug for CmdPayload
Source§impl<'de> Deserialize<'de> for CmdPayload
impl<'de> Deserialize<'de> for CmdPayload
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
Auto Trait Implementations§
impl Freeze for CmdPayload
impl RefUnwindSafe for CmdPayload
impl Send for CmdPayload
impl Sync for CmdPayload
impl Unpin for CmdPayload
impl UnsafeUnpin for CmdPayload
impl UnwindSafe for CmdPayload
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