Struct async_imap::types::QuotaResource
source · pub struct QuotaResource {
pub name: QuotaResourceName,
pub usage: u64,
pub limit: u64,
}
Expand description
5.1. QUOTA Response (https://tools.ietf.org/html/rfc2087#section-5.1)
Fields§
§name: QuotaResourceName
name of the resource
usage: u64
current usage of the resource
limit: u64
resource limit
Implementations§
source§impl QuotaResource
impl QuotaResource
sourcepub fn get_usage_percentage(&self) -> u64
pub fn get_usage_percentage(&self) -> u64
Returns the usage percentage of a QuotaResource.
Trait Implementations§
source§impl Clone for QuotaResource
impl Clone for QuotaResource
source§fn clone(&self) -> QuotaResource
fn clone(&self) -> QuotaResource
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 Debug for QuotaResource
impl Debug for QuotaResource
source§impl<'a> From<QuotaResource<'a>> for QuotaResource
impl<'a> From<QuotaResource<'a>> for QuotaResource
source§fn from(resource: QuotaResourceRef<'_>) -> Self
fn from(resource: QuotaResourceRef<'_>) -> Self
Converts to this type from the input type.
source§impl Hash for QuotaResource
impl Hash for QuotaResource
source§impl PartialEq for QuotaResource
impl PartialEq for QuotaResource
source§fn eq(&self, other: &QuotaResource) -> bool
fn eq(&self, other: &QuotaResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for QuotaResource
impl StructuralPartialEq for QuotaResource
Auto Trait Implementations§
impl RefUnwindSafe for QuotaResource
impl Send for QuotaResource
impl Sync for QuotaResource
impl Unpin for QuotaResource
impl UnwindSafe for QuotaResource
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