Struct imap::types::QuotaResource
source · #[non_exhaustive]pub struct QuotaResource<'a> {
pub name: QuotaResourceName<'a>,
pub usage: u64,
pub limit: u64,
}
Expand description
From QUOTA Response
The quota resource sub-pieces in a Quota
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: QuotaResourceName<'a>
The resource type
usage: u64
current usage of the resource
limit: u64
resource limit
Trait Implementations§
source§impl<'a> Clone for QuotaResource<'a>
impl<'a> Clone for QuotaResource<'a>
source§fn clone(&self) -> QuotaResource<'a>
fn clone(&self) -> QuotaResource<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for QuotaResource<'a>
impl<'a> Debug for QuotaResource<'a>
source§impl<'a> PartialEq<QuotaResource<'a>> for QuotaResource<'a>
impl<'a> PartialEq<QuotaResource<'a>> for QuotaResource<'a>
source§fn eq(&self, other: &QuotaResource<'a>) -> bool
fn eq(&self, other: &QuotaResource<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.