pub enum QuotaPeriod {
Lifetime,
Day,
Week,
Month,
PerSession,
}Expand description
Window kind for a quota. Lifetime is “ever / right now”; Day/Week/Month
reset on calendar boundaries (UTC); PerSession resets per opaque session id.
JSON schema
{
"description": "Window kind for a quota. `Lifetime` is \"ever / right now\"; `Day`/`Week`/`Month`\nreset on calendar boundaries (UTC); `PerSession` resets per opaque session id.",
"type": "string",
"enum": [
"lifetime",
"day",
"week",
"month",
"per_session"
]
}Variants§
Trait Implementations§
Source§impl Clone for QuotaPeriod
impl Clone for QuotaPeriod
Source§fn clone(&self) -> QuotaPeriod
fn clone(&self) -> QuotaPeriod
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 QuotaPeriod
impl Debug for QuotaPeriod
Source§impl<'de> Deserialize<'de> for QuotaPeriod
impl<'de> Deserialize<'de> for QuotaPeriod
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
Source§impl Display for QuotaPeriod
impl Display for QuotaPeriod
Source§impl FromStr for QuotaPeriod
impl FromStr for QuotaPeriod
Source§impl Hash for QuotaPeriod
impl Hash for QuotaPeriod
Source§impl Ord for QuotaPeriod
impl Ord for QuotaPeriod
Source§fn cmp(&self, other: &QuotaPeriod) -> Ordering
fn cmp(&self, other: &QuotaPeriod) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QuotaPeriod
impl PartialEq for QuotaPeriod
Source§fn eq(&self, other: &QuotaPeriod) -> bool
fn eq(&self, other: &QuotaPeriod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for QuotaPeriod
impl PartialOrd for QuotaPeriod
Source§impl Serialize for QuotaPeriod
impl Serialize for QuotaPeriod
Source§impl TryFrom<&String> for QuotaPeriod
impl TryFrom<&String> for QuotaPeriod
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for QuotaPeriod
impl TryFrom<&str> for QuotaPeriod
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for QuotaPeriod
impl TryFrom<String> for QuotaPeriod
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for QuotaPeriod
impl Eq for QuotaPeriod
impl StructuralPartialEq for QuotaPeriod
Auto Trait Implementations§
impl Freeze for QuotaPeriod
impl RefUnwindSafe for QuotaPeriod
impl Send for QuotaPeriod
impl Sync for QuotaPeriod
impl Unpin for QuotaPeriod
impl UnsafeUnpin for QuotaPeriod
impl UnwindSafe for QuotaPeriod
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