Struct telegram_api_rs::objects::BotCommand
source · pub struct BotCommand {
pub command: String,
pub description: String,
}
Fields§
§command: String
§description: String
Implementations§
source§impl BotCommand
impl BotCommand
pub fn from_json(data: JsonValue) -> BotCommand
pub fn to_json(&self) -> JsonValue
pub fn empty() -> BotCommand
Trait Implementations§
source§impl Clone for BotCommand
impl Clone for BotCommand
source§impl Display for BotCommand
impl Display for BotCommand
source§impl From<BotCommand> for JsonValue
impl From<BotCommand> for JsonValue
source§fn 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§
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