pub struct CreateCommandOptsBuilder { /* private fields */ }
Expand description
Builder for CreateCommandOpts
.
Implementations§
Source§impl CreateCommandOptsBuilder
impl CreateCommandOptsBuilder
pub fn bang(&mut self, value: bool) -> &mut Self
pub fn bar(&mut self, value: bool) -> &mut Self
pub fn count<VALUE: Into<Integer>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn force(&mut self, value: bool) -> &mut Self
pub fn force(&mut self, value: bool) -> &mut Self
Whether to override any previous definitions. Defaults to true
.
pub fn keepscript(&mut self, value: bool) -> &mut Self
pub fn register(&mut self, value: bool) -> &mut Self
Source§impl CreateCommandOptsBuilder
impl CreateCommandOptsBuilder
pub fn addr(&mut self, addr: CommandAddr) -> &mut Self
pub fn complete(&mut self, complete: CommandComplete) -> &mut Self
pub fn nargs(&mut self, nargs: CommandNArgs) -> &mut Self
pub fn range(&mut self, range: CommandRange) -> &mut Self
pub fn build(&mut self) -> CreateCommandOpts
Trait Implementations§
Source§impl Clone for CreateCommandOptsBuilder
impl Clone for CreateCommandOptsBuilder
Source§fn clone(&self) -> CreateCommandOptsBuilder
fn clone(&self) -> CreateCommandOptsBuilder
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 moreAuto Trait Implementations§
impl Freeze for CreateCommandOptsBuilder
impl RefUnwindSafe for CreateCommandOptsBuilder
impl !Send for CreateCommandOptsBuilder
impl !Sync for CreateCommandOptsBuilder
impl Unpin for CreateCommandOptsBuilder
impl UnwindSafe for CreateCommandOptsBuilder
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