pub struct CommandDefinition {
pub kind: u8,
pub name: &'static str,
pub version: u16,
pub fields: &'static [PayloadFieldDefinition],
}Expand description
Static definition for one command type.
Fields§
§kind: u8Stable command kind.
name: &'static strRust/source-level command name.
version: u16Schema version encoded as a compact u16.
fields: &'static [PayloadFieldDefinition]Payload fields.
Trait Implementations§
Source§impl Clone for CommandDefinition
impl Clone for CommandDefinition
Source§fn clone(&self) -> CommandDefinition
fn clone(&self) -> CommandDefinition
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 CommandDefinition
impl Debug for CommandDefinition
impl Copy for CommandDefinition
Auto Trait Implementations§
impl Freeze for CommandDefinition
impl RefUnwindSafe for CommandDefinition
impl Send for CommandDefinition
impl Sync for CommandDefinition
impl Unpin for CommandDefinition
impl UnsafeUnpin for CommandDefinition
impl UnwindSafe for CommandDefinition
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