pub struct RichTextBotCommand {
pub kind: String,
pub text: RichText,
pub bot_command: String,
}Expand description
A bot command (e.g. /start).
Fields§
§kind: StringAlways "bot_command".
text: RichTextThe display text.
bot_command: StringThe command string including the leading /.
Trait Implementations§
Source§impl Clone for RichTextBotCommand
impl Clone for RichTextBotCommand
Source§fn clone(&self) -> RichTextBotCommand
fn clone(&self) -> RichTextBotCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RichTextBotCommand
impl Debug for RichTextBotCommand
Source§impl<'de> Deserialize<'de> for RichTextBotCommand
impl<'de> Deserialize<'de> for RichTextBotCommand
Source§fn 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
Auto Trait Implementations§
impl Freeze for RichTextBotCommand
impl RefUnwindSafe for RichTextBotCommand
impl Send for RichTextBotCommand
impl Sync for RichTextBotCommand
impl Unpin for RichTextBotCommand
impl UnsafeUnpin for RichTextBotCommand
impl UnwindSafe for RichTextBotCommand
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