[][src]Enum top_gg::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]

impl Debug for ShardStats[src]

impl Serialize for ShardStats[src]

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

Auto Trait Implementations

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]