pub enum ShardStats {
Cumulative {
shard_count: Option<u64>,
guild_count: u64,
},
Shard {
guild_count: u16,
shard_count: u64,
shard_id: u64,
},
Shards(Vec<u64>),
}Expand description
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
Shard
Used to post the guild information for a single shard.
Fields
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§
Source§impl Clone for ShardStats
impl Clone for ShardStats
Source§fn clone(&self) -> ShardStats
fn clone(&self) -> ShardStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShardStats
impl Debug for ShardStats
Source§impl<'de> Deserialize<'de> for ShardStats
impl<'de> Deserialize<'de> for ShardStats
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 ShardStats
impl RefUnwindSafe for ShardStats
impl Send for ShardStats
impl Sync for ShardStats
impl Unpin for ShardStats
impl UnwindSafe for ShardStats
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