Struct botx_api::bot::models::status_request::BotCommandBuilder
source · 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 copy 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 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