Enum initiative_core::app::command::alias::CommandAlias
source · pub enum CommandAlias {
Literal {
term: Cow<'static, str>,
summary: Cow<'static, str>,
command: Box<Command>,
},
StrictWildcard {
command: Box<Command>,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl Autocomplete for CommandAlias
impl Autocomplete for CommandAlias
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 Clone for CommandAlias
impl Clone for CommandAlias
source§fn clone(&self) -> CommandAlias
fn clone(&self) -> CommandAlias
Returns a copy 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 ContextAwareParse for CommandAlias
impl ContextAwareParse for CommandAlias
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 Debug for CommandAlias
impl Debug for CommandAlias
source§impl Display for CommandAlias
impl Display for CommandAlias
source§impl From<CommandAlias> for CommandType
impl From<CommandAlias> for CommandType
source§fn from(c: CommandAlias) -> CommandType
fn from(c: CommandAlias) -> CommandType
Converts to this type from the input type.
source§impl Hash for CommandAlias
impl Hash for CommandAlias
source§impl PartialEq for CommandAlias
impl PartialEq for CommandAlias
source§impl Runnable for CommandAlias
impl Runnable for CommandAlias
impl Eq for CommandAlias
Auto Trait Implementations§
impl Freeze for CommandAlias
impl RefUnwindSafe for CommandAlias
impl Send for CommandAlias
impl Sync for CommandAlias
impl Unpin for CommandAlias
impl UnwindSafe for CommandAlias
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
)