Struct telegram_api_rs::objects::BotCommand
source · Fields
command: String
description: String
Implementations
sourceimpl BotCommand
impl BotCommand
pub fn from_json(data: JsonValue) -> BotCommand
pub fn to_json(&self) -> JsonValue
pub fn empty() -> BotCommand
Trait Implementations
sourceimpl Clone for BotCommand
impl Clone for BotCommand
sourceimpl Display for BotCommand
impl Display for BotCommand
sourceimpl From<BotCommand> for JsonValue
impl From<BotCommand> for JsonValue
sourcefn from(u: BotCommand) -> Self
fn from(u: BotCommand) -> Self
Converts to this type from the input type.
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