pub struct BotCommandBuilder { /* private fields */ }Expand description
Builder for BotCommand.
Implementations§
Source§impl BotCommandBuilder
impl BotCommandBuilder
Sourcepub fn with_description<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_description<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Описание команды
Sourcepub fn build(&self) -> Result<BotCommand, BotCommandBuilderError>
pub fn build(&self) -> Result<BotCommand, BotCommandBuilderError>
Trait Implementations§
Source§impl Clone for BotCommandBuilder
impl Clone for BotCommandBuilder
Source§fn clone(&self) -> BotCommandBuilder
fn clone(&self) -> BotCommandBuilder
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 BotCommandBuilder
impl RefUnwindSafe for BotCommandBuilder
impl Send for BotCommandBuilder
impl Sync for BotCommandBuilder
impl Unpin for BotCommandBuilder
impl UnwindSafe for BotCommandBuilder
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