pub enum OnExhausted {
ServeBestAttempt,
Error,
}Expand description
What to do when a spend cap is hit (SPEC §8.4 — never brick the customer).
Variants§
ServeBestAttempt
Serve the best attempt seen so far (default).
Error
Return a structured error instead of serving.
Trait Implementations§
Source§impl Clone for OnExhausted
impl Clone for OnExhausted
Source§fn clone(&self) -> OnExhausted
fn clone(&self) -> OnExhausted
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 moreimpl Copy for OnExhausted
Source§impl Debug for OnExhausted
impl Debug for OnExhausted
Source§impl Default for OnExhausted
impl Default for OnExhausted
Source§fn default() -> OnExhausted
fn default() -> OnExhausted
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OnExhausted
impl<'de> Deserialize<'de> for OnExhausted
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
impl Eq for OnExhausted
Source§impl PartialEq for OnExhausted
impl PartialEq for OnExhausted
Source§impl Serialize for OnExhausted
impl Serialize for OnExhausted
impl StructuralPartialEq for OnExhausted
Auto Trait Implementations§
impl Freeze for OnExhausted
impl RefUnwindSafe for OnExhausted
impl Send for OnExhausted
impl Sync for OnExhausted
impl Unpin for OnExhausted
impl UnsafeUnpin for OnExhausted
impl UnwindSafe for OnExhausted
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