backbeat_sdk 0.5.0-beta

The library for interfacing with Backbeat.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Statistics about your [`crate::Backbeat`] store.
#[derive(serde::Serialize)]
pub struct StoreStats {
	pub charts: u64,
	pub tables: u64,
	pub courses: u64,
	pub packs: u64,
	pub asset_count: u64,
	pub asset_bytes: u64,
	pub db_bytes: u64,
}

impl StoreStats {
	/// Total disk space used by backbeat.
	pub fn total_bytes(&self) -> u64 {
		self.asset_bytes + self.db_bytes
	}
}