Struct imap::types::QuotaResourceLimit
source · #[non_exhaustive]pub struct QuotaResourceLimit<'a> {
pub name: QuotaResourceName<'a>,
pub amount: u64,
}
Expand description
Used by [Session::set_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
amount: u64
The amount for that resource
Implementations§
source§impl<'a> QuotaResourceLimit<'a>
impl<'a> QuotaResourceLimit<'a>
sourcepub fn new(name: impl Into<QuotaResourceName<'a>>, amount: u64) -> Self
pub fn new(name: impl Into<QuotaResourceName<'a>>, amount: u64) -> Self
Creates a new QuotaResourceLimit
Trait Implementations§
source§impl<'a> Clone for QuotaResourceLimit<'a>
impl<'a> Clone for QuotaResourceLimit<'a>
source§fn clone(&self) -> QuotaResourceLimit<'a>
fn clone(&self) -> QuotaResourceLimit<'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 QuotaResourceLimit<'a>
impl<'a> Debug for QuotaResourceLimit<'a>
source§impl Display for QuotaResourceLimit<'_>
impl Display for QuotaResourceLimit<'_>
source§impl<'a> PartialEq<QuotaResourceLimit<'a>> for QuotaResourceLimit<'a>
impl<'a> PartialEq<QuotaResourceLimit<'a>> for QuotaResourceLimit<'a>
source§fn eq(&self, other: &QuotaResourceLimit<'a>) -> bool
fn eq(&self, other: &QuotaResourceLimit<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.