Struct initiative_core::app::command::Command
source · pub struct Command {
matches: CommandMatches<CommandType>,
}
Fields§
§matches: CommandMatches<CommandType>
Implementations§
Trait Implementations§
source§impl Autocomplete for Command
impl Autocomplete for Command
fn autocomplete<'life0, 'life1, 'async_trait>(
input: &'life0 str,
app_meta: &'life1 AppMeta,
) -> Pin<Box<dyn Future<Output = Vec<AutocompleteSuggestion>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
source§impl ContextAwareParse for Command
impl ContextAwareParse for Command
fn parse_input<'life0, 'life1, 'async_trait>(
input: &'life0 str,
app_meta: &'life1 AppMeta,
) -> Pin<Box<dyn Future<Output = CommandMatches<Self>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl From<CommandMatches<CommandType>> for Command
impl From<CommandMatches<CommandType>> for Command
source§fn from(input: CommandMatches<CommandType>) -> Self
fn from(input: CommandMatches<CommandType>) -> Self
Converts to this type from the input type.
source§impl PartialEq for Command
impl PartialEq for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)