pub struct UsageReport {Show 13 fields
pub source: UsageSource,
pub scope: UsageScope,
pub path: Option<String>,
pub snapshot_at: Option<Timestamp>,
pub total_bytes: u64,
pub object_count: u64,
pub version_count: Option<u64>,
pub delete_marker_count: Option<u64>,
pub incomplete_upload_count: Option<u64>,
pub incomplete_upload_bytes: Option<u64>,
pub buckets: Vec<UsageBucket>,
pub partial: bool,
pub failures: Vec<UsageFailure>,
}Expand description
Complete or partial usage result.
Fields§
§source: UsageSourceData source used for the report.
scope: UsageScopeScope represented by the report.
path: Option<String>Alias-relative path for bucket and prefix scopes.
snapshot_at: Option<Timestamp>Server snapshot timestamp; absent for client scans.
total_bytes: u64Total bytes represented by the report.
object_count: u64Current object count.
version_count: Option<u64>Version count, when supplied by the selected source.
delete_marker_count: Option<u64>Delete marker count, when supplied by the selected source.
incomplete_upload_count: Option<u64>Incomplete upload count, when explicitly scanned.
incomplete_upload_bytes: Option<u64>Incomplete uploaded-part bytes, when explicitly scanned.
buckets: Vec<UsageBucket>Deterministically sorted bucket rows.
partial: boolWhether one or more requested buckets could not be scanned.
failures: Vec<UsageFailure>Per-bucket failures for partial multi-bucket scans.
Implementations§
Source§impl UsageReport
impl UsageReport
Sourcepub fn empty(
source: UsageSource,
scope: UsageScope,
path: Option<String>,
) -> Self
pub fn empty( source: UsageSource, scope: UsageScope, path: Option<String>, ) -> Self
Create an empty report that can be populated with bucket rows.
Sourcepub fn push_bucket(&mut self, bucket: UsageBucket)
pub fn push_bucket(&mut self, bucket: UsageBucket)
Add one bucket row before final aggregation.
Sourcepub fn push_failure(&mut self, failure: UsageFailure)
pub fn push_failure(&mut self, failure: UsageFailure)
Add one recoverable bucket failure.
Trait Implementations§
Source§impl Clone for UsageReport
impl Clone for UsageReport
Source§fn clone(&self) -> UsageReport
fn clone(&self) -> UsageReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more