pub struct WorkspaceUsage {
pub workspace_id: WorkspaceId,
pub active_logical_bytes: u64,
pub trashed_logical_bytes: u64,
pub staged_bytes: u64,
pub active_nodes: u64,
pub trashed_nodes: u64,
pub max_logical_bytes: u64,
pub max_nodes: u64,
pub max_file_bytes: u64,
}Expand description
Logical and quota usage for one workspace.
Fields§
§workspace_id: WorkspaceIdThe workspace described by this snapshot.
active_logical_bytes: u64Logical bytes reachable through active nodes.
trashed_logical_bytes: u64Logical bytes retained in recoverable trash.
staged_bytes: u64Temporary bytes held internally by incomplete streamed writes.
This is a read-only accounting metric, not a caller-visible staged content identifier, upload handle, or staging API.
active_nodes: u64The number of active nodes, including the workspace root.
trashed_nodes: u64The number of nodes retained in recoverable trash.
max_logical_bytes: u64The configured logical-byte quota.
max_nodes: u64The configured node-count quota.
max_file_bytes: u64The configured maximum size of one regular file.
Trait Implementations§
Source§impl Clone for WorkspaceUsage
impl Clone for WorkspaceUsage
Source§fn clone(&self) -> WorkspaceUsage
fn clone(&self) -> WorkspaceUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceUsage
impl Debug for WorkspaceUsage
Source§impl<'de> Deserialize<'de> for WorkspaceUsage
impl<'de> Deserialize<'de> for WorkspaceUsage
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
impl Eq for WorkspaceUsage
Source§impl PartialEq for WorkspaceUsage
impl PartialEq for WorkspaceUsage
Source§impl Serialize for WorkspaceUsage
impl Serialize for WorkspaceUsage
impl StructuralPartialEq for WorkspaceUsage
Auto Trait Implementations§
impl Freeze for WorkspaceUsage
impl RefUnwindSafe for WorkspaceUsage
impl Send for WorkspaceUsage
impl Sync for WorkspaceUsage
impl Unpin for WorkspaceUsage
impl UnsafeUnpin for WorkspaceUsage
impl UnwindSafe for WorkspaceUsage
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