pub struct DatabaseUsage {
pub bdb_uid: u32,
pub name: String,
pub memory_used_avg: u64,
pub memory_used_peak: u64,
pub ops_per_sec_avg: f64,
pub bandwidth_avg: u64,
pub shard_count: Option<u32>,
pub extra: Value,
}
Expand description
Database usage information
Fields§
§bdb_uid: u32
Database unique identifier
name: String
Name of the database
memory_used_avg: u64
Average memory usage during the reporting period (bytes)
memory_used_peak: u64
Peak memory usage during the reporting period (bytes)
ops_per_sec_avg: f64
Average operations per second
bandwidth_avg: u64
Average bandwidth usage (bytes per second)
shard_count: Option<u32>
Number of shards in the database
extra: Value
Trait Implementations§
Source§impl Clone for DatabaseUsage
impl Clone for DatabaseUsage
Source§fn clone(&self) -> DatabaseUsage
fn clone(&self) -> DatabaseUsage
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 DatabaseUsage
impl Debug for DatabaseUsage
Source§impl<'de> Deserialize<'de> for DatabaseUsage
impl<'de> Deserialize<'de> for DatabaseUsage
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 DatabaseUsage
impl RefUnwindSafe for DatabaseUsage
impl Send for DatabaseUsage
impl Sync for DatabaseUsage
impl Unpin for DatabaseUsage
impl UnwindSafe for DatabaseUsage
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