pub struct PluginCommandBuilder { /* private fields */ }Expand description
Builder for constructing PluginCommand instances.
Implementations§
Source§impl PluginCommandBuilder
impl PluginCommandBuilder
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set the command description.
Sourcepub fn subcommand(self, cmd: PluginCommand) -> Self
pub fn subcommand(self, cmd: PluginCommand) -> Self
Add a subcommand.
Sourcepub fn build(self) -> PluginCommand
pub fn build(self) -> PluginCommand
Build the PluginCommand.
Auto Trait Implementations§
impl Freeze for PluginCommandBuilder
impl !RefUnwindSafe for PluginCommandBuilder
impl Send for PluginCommandBuilder
impl Sync for PluginCommandBuilder
impl Unpin for PluginCommandBuilder
impl UnsafeUnpin for PluginCommandBuilder
impl !UnwindSafe for PluginCommandBuilder
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