pub struct CommandDef {
pub id: u8,
pub name: &'static str,
pub fields: &'static [FieldDef],
}Expand description
A cluster-specific command.
Fields§
§id: u8Command id.
name: &'static strsnake_case name.
fields: &'static [FieldDef]Its fields, in order.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandDef
impl RefUnwindSafe for CommandDef
impl Send for CommandDef
impl Sync for CommandDef
impl Unpin for CommandDef
impl UnsafeUnpin for CommandDef
impl UnwindSafe for CommandDef
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