[][src]Enum discord_bots_org::model::ShardStats

pub enum ShardStats {
    Cumulative {
        shard_count: Option<u64>,
        guild_count: u64,
    },
    Shard {
        guild_count: u16,
        shard_count: u64,
        shard_id: u64,
    },
    Shards(Vec<u64>),
}

Information about one or more shards, used to update a bot's sharding stats.

Variants

Cumulative

Used to post the cumulative guild information for all of the bot.

Fields of Cumulative

shard_count: Option<u64>

The total number of shards in use.

guild_count: u64

The total number of guilds across the entire bot.

Shard

Used to post the guild information for a single shard.

Fields of Shard

guild_count: u16

The total number of guilds in the shard.

shard_count: u64

The total number of shards in use.

shard_id: u64

The ID of the shard being posted for.

Shards(Vec<u64>)

Used to post the guild information for all shards.

Each vector index is the shard ID mapped to the number of guilds in the shard.

Trait Implementations

impl Clone for ShardStats
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ShardStats
[src]

impl Serialize for ShardStats
[src]

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

Auto Trait Implementations

impl Send for ShardStats

impl Sync for ShardStats

Blanket Implementations

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

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

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T