[][src]Struct rtdlib::types::BotInfo

pub struct BotInfo { /* fields omitted */ }

Provides information about a bot and its supported commands

Implementations

impl BotInfo[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDBotInfoBuilder[src]

pub fn description(&self) -> &String[src]

pub fn commands(&self) -> &Vec<BotCommand>[src]

Trait Implementations

impl AsRef<BotInfo> for BotInfo[src]

impl Clone for BotInfo[src]

impl Debug for BotInfo[src]

impl Default for BotInfo[src]

impl<'de> Deserialize<'de> for BotInfo[src]

impl RObject for BotInfo[src]

impl Serialize for BotInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for BotInfo

impl Send for BotInfo

impl Sync for BotInfo

impl Unpin for BotInfo

impl UnwindSafe for BotInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.