#[non_exhaustive]pub enum AnswerOutcome {
Ok,
Stale,
NotCovered,
Unlicensed,
PaymentRequired,
RateLimited,
BadRequest,
Error,
Pending,
}Expand description
The nine outcomes of SPEC 5.5 (spec-0.4.2), pending included.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok
Stale
NotCovered
Unlicensed
PaymentRequired
RateLimited
BadRequest
Error
500-599.
Pending
Implementations§
Source§impl AnswerOutcome
impl AnswerOutcome
Trait Implementations§
Source§impl Clone for AnswerOutcome
impl Clone for AnswerOutcome
impl Copy for AnswerOutcome
Source§impl Debug for AnswerOutcome
impl Debug for AnswerOutcome
impl Eq for AnswerOutcome
Source§impl Hash for AnswerOutcome
impl Hash for AnswerOutcome
Source§impl Ord for AnswerOutcome
impl Ord for AnswerOutcome
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AnswerOutcome
impl PartialEq for AnswerOutcome
Source§impl PartialOrd for AnswerOutcome
impl PartialOrd for AnswerOutcome
impl StructuralPartialEq for AnswerOutcome
Auto Trait Implementations§
impl Freeze for AnswerOutcome
impl RefUnwindSafe for AnswerOutcome
impl Send for AnswerOutcome
impl Sync for AnswerOutcome
impl Unpin for AnswerOutcome
impl UnsafeUnpin for AnswerOutcome
impl UnwindSafe for AnswerOutcome
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