pub struct CommandDescription {
pub code: u16,
pub name: String,
pub description: String,
pub kind: CommandKind,
pub hidden: bool,
pub lumi_text: String,
pub guid: u64,
}Fields§
§code: u16The code of this command
name: StringThe name of the command
description: StringThe description for the command Shows up when hovering over the command and in the command ui
kind: CommandKindThe type of command this is
Hide this in the command ui
lumi_text: StringThe text used by lumi!
guid: u64A unique guid
Used mainly in command-gen to prevent conflicts with egui::Id
Implementations§
Source§impl CommandDescription
impl CommandDescription
Sourcepub fn parameter_count(&self) -> u8
pub fn parameter_count(&self) -> u8
How many total parameters does the command have?
Trait Implementations§
Source§impl Clone for CommandDescription
impl Clone for CommandDescription
Source§fn clone(&self) -> CommandDescription
fn clone(&self) -> CommandDescription
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 CommandDescription
impl Debug for CommandDescription
Source§impl Default for CommandDescription
impl Default for CommandDescription
Source§impl<'de> Deserialize<'de> for CommandDescription
impl<'de> Deserialize<'de> for CommandDescription
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 CommandDescription
impl RefUnwindSafe for CommandDescription
impl Send for CommandDescription
impl Sync for CommandDescription
impl Unpin for CommandDescription
impl UnwindSafe for CommandDescription
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