pub struct CriteriaCommand { /* private fields */ }Expand description
A command with an optional Criteria
Implementations§
Source§impl CriteriaCommand
impl CriteriaCommand
Sourcepub fn get_commands(&self) -> &[SubCommand]
pub fn get_commands(&self) -> &[SubCommand]
Get the commands in CriteriaCommand
Sourcepub fn command(self, command: SubCommand) -> Self
pub fn command(self, command: SubCommand) -> Self
At a new command
Trait Implementations§
Source§impl<__AsRefT: ?Sized> AsRef<__AsRefT> for CriteriaCommand
impl<__AsRefT: ?Sized> AsRef<__AsRefT> for CriteriaCommand
Source§impl Clone for CriteriaCommand
impl Clone for CriteriaCommand
Source§fn clone(&self) -> CriteriaCommand
fn clone(&self) -> CriteriaCommand
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 Default for CriteriaCommand
impl Default for CriteriaCommand
Source§fn default() -> CriteriaCommand
fn default() -> CriteriaCommand
Returns the “default value” for a type. Read more
Source§impl Display for CriteriaCommand
impl Display for CriteriaCommand
Source§impl From<CriteriaCommand> for Command
impl From<CriteriaCommand> for Command
Source§fn from(original: CriteriaCommand) -> Command
fn from(original: CriteriaCommand) -> Command
Converts to this type from the input type.
Source§impl From<SubCommand> for CriteriaCommand
impl From<SubCommand> for CriteriaCommand
Source§fn from(cmd: SubCommand) -> Self
fn from(cmd: SubCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CriteriaCommand
impl RefUnwindSafe for CriteriaCommand
impl Send for CriteriaCommand
impl Sync for CriteriaCommand
impl Unpin for CriteriaCommand
impl UnwindSafe for CriteriaCommand
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