Struct dropbox_sdk::team::GetStorageReport
source · [−]#[non_exhaustive]pub struct GetStorageReport {
pub start_date: String,
pub total_usage: NumberPerDay,
pub shared_usage: NumberPerDay,
pub unshared_usage: NumberPerDay,
pub shared_folders: NumberPerDay,
pub member_storage_map: Vec<Vec<StorageBucket>>,
}dbx_team only.Expand description
Storage Report Result. Each of the items in the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_date: StringFirst date present in the results as ‘YYYY-MM-DD’ or None.
total_usage: NumberPerDaySum of the shared, unshared, and datastore usages, for each day.
Array of the combined size (bytes) of team members’ shared folders, for each day.
Array of the combined size (bytes) of team members’ root namespaces, for each day.
Array of the number of shared folders owned by team members, for each day.
member_storage_map: Vec<Vec<StorageBucket>>Array of storage summaries of team members’ account sizes. Each storage summary is an array of key, value pairs, where each pair describes a storage bucket. The key indicates the upper bound of the bucket and the value is the number of users in that bucket. There is one such summary per day. If there is no data for a day, the storage summary will be empty.
Implementations
sourceimpl GetStorageReport
impl GetStorageReport
pub fn new(
start_date: String,
total_usage: NumberPerDay,
shared_usage: NumberPerDay,
unshared_usage: NumberPerDay,
shared_folders: NumberPerDay,
member_storage_map: Vec<Vec<StorageBucket>>
) -> Self
Trait Implementations
sourceimpl Clone for GetStorageReport
impl Clone for GetStorageReport
sourcefn clone(&self) -> GetStorageReport
fn clone(&self) -> GetStorageReport
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GetStorageReport
impl Debug for GetStorageReport
sourceimpl<'de> Deserialize<'de> for GetStorageReport
impl<'de> Deserialize<'de> for GetStorageReport
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<GetStorageReport> for GetStorageReport
impl PartialEq<GetStorageReport> for GetStorageReport
sourcefn eq(&self, other: &GetStorageReport) -> bool
fn eq(&self, other: &GetStorageReport) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GetStorageReport) -> bool
fn ne(&self, other: &GetStorageReport) -> bool
This method tests for !=.
sourceimpl Serialize for GetStorageReport
impl Serialize for GetStorageReport
impl Eq for GetStorageReport
impl StructuralEq for GetStorageReport
impl StructuralPartialEq for GetStorageReport
Auto Trait Implementations
impl RefUnwindSafe for GetStorageReport
impl Send for GetStorageReport
impl Sync for GetStorageReport
impl Unpin for GetStorageReport
impl UnwindSafe for GetStorageReport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more