Struct telegram_bot_api::types::BotCommand
source · [−]Expand description
This object represents a bot command.
Fields
command: String
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
description: String
Description of the command; 1-256 characters.
Implementations
Trait Implementations
sourceimpl Clone for BotCommand
impl Clone for BotCommand
sourcefn clone(&self) -> BotCommand
fn clone(&self) -> BotCommand
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BotCommand
impl Debug for BotCommand
sourceimpl<'de> Deserialize<'de> for BotCommand
impl<'de> Deserialize<'de> for BotCommand
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for BotCommand
impl Serialize for BotCommand
Auto Trait Implementations
impl RefUnwindSafe for BotCommand
impl Send for BotCommand
impl Sync for BotCommand
impl Unpin for BotCommand
impl UnwindSafe for BotCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more