pub struct CompactCommand {
pub command_type: String,
pub name: String,
pub description: String,
pub is_enabled: fn() -> bool,
pub supports_non_interactive: bool,
pub argument_hint: String,
}Expand description
Compact command configuration
Fields§
§command_type: StringCommand type
name: StringCommand name
description: StringCommand description
is_enabled: fn() -> boolWhether the command is enabled
supports_non_interactive: boolWhether it supports non-interactive mode
argument_hint: StringArgument hint text
Implementations§
Source§impl CompactCommand
impl CompactCommand
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if the command is enabled
Trait Implementations§
Source§impl Clone for CompactCommand
impl Clone for CompactCommand
Source§fn clone(&self) -> CompactCommand
fn clone(&self) -> CompactCommand
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 CompactCommand
impl Debug for CompactCommand
Auto Trait Implementations§
impl Freeze for CompactCommand
impl RefUnwindSafe for CompactCommand
impl Send for CompactCommand
impl Sync for CompactCommand
impl Unpin for CompactCommand
impl UnsafeUnpin for CompactCommand
impl UnwindSafe for CompactCommand
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