pub struct BotInfo {
pub description: String,
pub commands: Vec<BotCommand>,
}
Expand description
Provides information about a bot and its supported commands
Fields§
§description: String
Long description shown on the user info page
commands: Vec<BotCommand>
A list of commands supported by the bot
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotInfo
impl<'de> Deserialize<'de> for BotInfo
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 BotInfo
impl RefUnwindSafe for BotInfo
impl Send for BotInfo
impl Sync for BotInfo
impl Unpin for BotInfo
impl UnwindSafe for BotInfo
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