pub enum ConsumeAccountRateLimitResetCreditOutcome {
Reset,
NothingToReset,
NoCredit,
AlreadyRedeemed,
}Expand description
ConsumeAccountRateLimitResetCreditOutcome
JSON schema
{
"oneOf": [
{
"description": "A reset credit was consumed and the eligible rate-limit windows were reset.",
"type": "string",
"enum": [
"reset"
]
},
{
"description": "No current rate-limit window is eligible for a reset.",
"type": "string",
"enum": [
"nothingToReset"
]
},
{
"description": "The account has no earned reset credits available.",
"type": "string",
"enum": [
"noCredit"
]
},
{
"description": "The same idempotency key already completed a reset successfully.",
"type": "string",
"enum": [
"alreadyRedeemed"
]
}
]
}Variants§
Reset
A reset credit was consumed and the eligible rate-limit windows were reset.
NothingToReset
No current rate-limit window is eligible for a reset.
NoCredit
The account has no earned reset credits available.
AlreadyRedeemed
The same idempotency key already completed a reset successfully.
Trait Implementations§
Source§impl Clone for ConsumeAccountRateLimitResetCreditOutcome
impl Clone for ConsumeAccountRateLimitResetCreditOutcome
Source§fn clone(&self) -> ConsumeAccountRateLimitResetCreditOutcome
fn clone(&self) -> ConsumeAccountRateLimitResetCreditOutcome
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<'de> Deserialize<'de> for ConsumeAccountRateLimitResetCreditOutcome
impl<'de> Deserialize<'de> for ConsumeAccountRateLimitResetCreditOutcome
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 Ord for ConsumeAccountRateLimitResetCreditOutcome
impl Ord for ConsumeAccountRateLimitResetCreditOutcome
Source§fn cmp(&self, other: &ConsumeAccountRateLimitResetCreditOutcome) -> Ordering
fn cmp(&self, other: &ConsumeAccountRateLimitResetCreditOutcome) -> 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 ConsumeAccountRateLimitResetCreditOutcome
impl PartialEq for ConsumeAccountRateLimitResetCreditOutcome
Source§fn eq(&self, other: &ConsumeAccountRateLimitResetCreditOutcome) -> bool
fn eq(&self, other: &ConsumeAccountRateLimitResetCreditOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConsumeAccountRateLimitResetCreditOutcome
impl PartialOrd for ConsumeAccountRateLimitResetCreditOutcome
Source§fn partial_cmp(
&self,
other: &ConsumeAccountRateLimitResetCreditOutcome,
) -> Option<Ordering>
fn partial_cmp( &self, other: &ConsumeAccountRateLimitResetCreditOutcome, ) -> Option<Ordering>
Source§impl TryFrom<&String> for ConsumeAccountRateLimitResetCreditOutcome
impl TryFrom<&String> for ConsumeAccountRateLimitResetCreditOutcome
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ConsumeAccountRateLimitResetCreditOutcome
impl TryFrom<&str> for ConsumeAccountRateLimitResetCreditOutcome
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ConsumeAccountRateLimitResetCreditOutcome
impl TryFrom<String> for ConsumeAccountRateLimitResetCreditOutcome
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for ConsumeAccountRateLimitResetCreditOutcome
impl Eq for ConsumeAccountRateLimitResetCreditOutcome
impl StructuralPartialEq for ConsumeAccountRateLimitResetCreditOutcome
Auto Trait Implementations§
impl Freeze for ConsumeAccountRateLimitResetCreditOutcome
impl RefUnwindSafe for ConsumeAccountRateLimitResetCreditOutcome
impl Send for ConsumeAccountRateLimitResetCreditOutcome
impl Sync for ConsumeAccountRateLimitResetCreditOutcome
impl Unpin for ConsumeAccountRateLimitResetCreditOutcome
impl UnsafeUnpin for ConsumeAccountRateLimitResetCreditOutcome
impl UnwindSafe for ConsumeAccountRateLimitResetCreditOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.