pub struct GetUsageAndQuotaReturns { /* private fields */ }Expand description
Returns usage and quota in bytes.
Implementations§
Source§impl GetUsageAndQuotaReturns
impl GetUsageAndQuotaReturns
Sourcepub fn builder(
usage: f64,
quota: f64,
override_active: bool,
usage_breakdown: Vec<UsageForType>,
) -> GetUsageAndQuotaReturnsBuilder
pub fn builder( usage: f64, quota: f64, override_active: bool, usage_breakdown: Vec<UsageForType>, ) -> GetUsageAndQuotaReturnsBuilder
Creates a builder for this type with the required parameters:
usage: Storage usage (bytes).quota: Storage quota (bytes).override_active: Whether or not the origin has an active storage quota overrideusage_breakdown: Storage usage per type (bytes).
Sourcepub fn override_active(&self) -> bool
pub fn override_active(&self) -> bool
Whether or not the origin has an active storage quota override
Sourcepub fn usage_breakdown(&self) -> &[UsageForType]
pub fn usage_breakdown(&self) -> &[UsageForType]
Storage usage per type (bytes).
Trait Implementations§
Source§impl Clone for GetUsageAndQuotaReturns
impl Clone for GetUsageAndQuotaReturns
Source§fn clone(&self) -> GetUsageAndQuotaReturns
fn clone(&self) -> GetUsageAndQuotaReturns
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 GetUsageAndQuotaReturns
impl Debug for GetUsageAndQuotaReturns
Source§impl Default for GetUsageAndQuotaReturns
impl Default for GetUsageAndQuotaReturns
Source§fn default() -> GetUsageAndQuotaReturns
fn default() -> GetUsageAndQuotaReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetUsageAndQuotaReturns
impl<'de> Deserialize<'de> for GetUsageAndQuotaReturns
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
Auto Trait Implementations§
impl Freeze for GetUsageAndQuotaReturns
impl RefUnwindSafe for GetUsageAndQuotaReturns
impl Send for GetUsageAndQuotaReturns
impl Sync for GetUsageAndQuotaReturns
impl Unpin for GetUsageAndQuotaReturns
impl UnsafeUnpin for GetUsageAndQuotaReturns
impl UnwindSafe for GetUsageAndQuotaReturns
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