pub struct StorageUsage {
pub version: u32,
pub measured_at: i64,
pub categories: Vec<StorageCategory>,
pub sessions: Vec<SessionStorageUsage>,
pub session_count: usize,
pub projects: Vec<ProjectStorageUsage>,
pub project_count: usize,
pub details_truncated: bool,
pub gateway_total: StorageSize,
pub limit_bytes: Option<u64>,
pub used_bytes: u64,
}Expand description
Comprehensive usage report. Logical references and project totals are not additive.
Fields§
§version: u32Schema version independent of the gateway wire version.
measured_at: i64Measurement time in Unix seconds.
categories: Vec<StorageCategory>Non-overlapping categories within the gateway state directory.
sessions: Vec<SessionStorageUsage>Per-chat logical ownership.
session_count: usizeTotal chats measured before the telemetry transport bounds its detail rows.
projects: Vec<ProjectStorageUsage>Distinct registered projects.
project_count: usizeTotal registered project directories measured.
details_truncated: boolDetail rows were omitted by the measurement budget or telemetry transport limit.
gateway_total: StorageSizeAggregate bytes and file counts of gateway categories only. Completeness also covers project discovery and measurement for upload admission.
limit_bytes: Option<u64>Maximum content blob and project file bytes; absent for self-hosted gateways.
used_bytes: u64Content blob and project file bytes charged against the allowance. Nested project paths are charged once; separate file copies count separately.
Trait Implementations§
Source§impl Clone for StorageUsage
impl Clone for StorageUsage
Source§impl Debug for StorageUsage
impl Debug for StorageUsage
Source§impl<'de> Deserialize<'de> for StorageUsage
impl<'de> Deserialize<'de> for StorageUsage
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>,
impl Eq for StorageUsage
Source§impl PartialEq for StorageUsage
impl PartialEq for StorageUsage
Source§impl Serialize for StorageUsage
impl Serialize for StorageUsage
impl StructuralPartialEq for StorageUsage
Auto Trait Implementations§
impl Freeze for StorageUsage
impl RefUnwindSafe for StorageUsage
impl Send for StorageUsage
impl Sync for StorageUsage
impl Unpin for StorageUsage
impl UnsafeUnpin for StorageUsage
impl UnwindSafe for StorageUsage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.