pub struct CommandData<'a> {
pub path: CommandPath,
pub fields: Option<&'a [u8]>,
pub command_ref: Option<u16>,
}Expand description
CommandDataIB (§10.6.12) — a command invocation, or a command response’s payload.
Fields§
§path: CommandPathCommandPath [0].
fields: Option<&'a [u8]>CommandFields [1] — the encoded TLV element, or None for a command with no
fields.
command_ref: Option<u16>CommandRef [2] — which request this response answers, when an InvokeRequest
carried more than one command (interaction model revision 12 and later).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CommandData<'a>
impl<'a> Clone for CommandData<'a>
Source§fn clone(&self) -> CommandData<'a>
fn clone(&self) -> CommandData<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CommandData<'a>
Source§impl<'a> Debug for CommandData<'a>
impl<'a> Debug for CommandData<'a>
impl<'a> Eq for CommandData<'a>
Source§impl<'a> PartialEq for CommandData<'a>
impl<'a> PartialEq for CommandData<'a>
impl<'a> StructuralPartialEq for CommandData<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandData<'a>
impl<'a> RefUnwindSafe for CommandData<'a>
impl<'a> Send for CommandData<'a>
impl<'a> Sync for CommandData<'a>
impl<'a> Unpin for CommandData<'a>
impl<'a> UnsafeUnpin for CommandData<'a>
impl<'a> UnwindSafe for CommandData<'a>
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