pub struct CommandCollectionBuilder { /* private fields */ }Expand description
Builder for CommandCollection.
Implementations§
Source§impl CommandCollectionBuilder
impl CommandCollectionBuilder
Sourcepub fn command(self, cmd: impl CommandLike + 'static) -> Self
pub fn command(self, cmd: impl CommandLike + 'static) -> Self
Add a subcommand to the base group.
Sourcepub fn build(self) -> CommandCollection
pub fn build(self) -> CommandCollection
Build the CommandCollection.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandCollectionBuilder
impl !UnwindSafe for CommandCollectionBuilder
impl Freeze for CommandCollectionBuilder
impl Send for CommandCollectionBuilder
impl Sync for CommandCollectionBuilder
impl Unpin for CommandCollectionBuilder
impl UnsafeUnpin for CommandCollectionBuilder
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