[][src]Struct top_gg::model::Bot

pub struct Bot {
    pub avatar: Option<String>,
    pub certified_bot: bool,
    pub date: DateTime<FixedOffset>,
    pub def_avatar: Option<String>,
    pub description_long: Option<String>,
    pub description_short: String,
    pub discriminator: String,
    pub github: Option<String>,
    pub id: String,
    pub invite: Option<String>,
    pub lib: String,
    pub owners: Vec<String>,
    pub points: u64,
    pub prefix: String,
    pub support: Option<String>,
    pub tags: Vec<String>,
    pub username: String,
    pub vanity: Option<String>,
    pub website: Option<String>,
}

Information about a bot.

Fields

avatar: Option<String>

The avatar hash of the bot user.

certified_bot: bool

The certified status of the bot.

date: DateTime<FixedOffset>

The date when the bot was approved.

def_avatar: Option<String>

The CDN hash of the bot's avatar if the bot has none.

description_long: Option<String>

The long description of the bot.

Can contain HTML and/or Markdown.

description_short: String

The short description of the bot.

discriminator: String

The discriminator of the bot.

github: Option<String>

The link to the GitHub repo of the bot.

id: String

The ID of the bot.

invite: Option<String>

The custom bot invite URL of the bot.

lib: String

The library of the bot.

owners: Vec<String>

The owners of the bot. First one in the array is the main owner.

points: u64

The amount of upvotes the bot has.

prefix: String

The prefix of the bot.

support: Option<String>

The support server invite code of the bot.

tags: Vec<String>

The tags of the bot.

username: String

The username of the bot.

vanity: Option<String>

The vanity URL of the bot.

website: Option<String>

The website URL of the bot.

Trait Implementations

impl Clone for Bot[src]

impl Debug for Bot[src]

impl Serialize for Bot[src]

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

Auto Trait Implementations

impl Send for Bot

impl Sync for Bot

impl Unpin for Bot

impl UnwindSafe for Bot

impl RefUnwindSafe for Bot

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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