#[non_exhaustive]pub enum ProblemCode {
ValidationFailed,
CursorInvalid,
CursorMismatch,
Unauthorized,
Forbidden,
NotFound,
RateLimited,
InternalError,
Other(String),
}Expand description
code of an API error (problem+json).
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.
ValidationFailed
VALIDATION_FAILED
CursorInvalid
CURSOR_INVALID
CursorMismatch
CURSOR_MISMATCH
UNAUTHORIZED
Forbidden
FORBIDDEN
NotFound
NOT_FOUND
RateLimited
RATE_LIMITED
InternalError
INTERNAL_ERROR
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Source§impl ProblemCode
impl ProblemCode
pub const VALIDATION_FAILED: &'static str = "VALIDATION_FAILED"
pub const CURSOR_INVALID: &'static str = "CURSOR_INVALID"
pub const CURSOR_MISMATCH: &'static str = "CURSOR_MISMATCH"
pub const UNAUTHORIZED: &'static str = "UNAUTHORIZED"
pub const FORBIDDEN: &'static str = "FORBIDDEN"
pub const NOT_FOUND: &'static str = "NOT_FOUND"
pub const RATE_LIMITED: &'static str = "RATE_LIMITED"
pub const INTERNAL_ERROR: &'static str = "INTERNAL_ERROR"
Trait Implementations§
Source§impl AsRef<str> for ProblemCode
impl AsRef<str> for ProblemCode
Source§impl Clone for ProblemCode
impl Clone for ProblemCode
Source§impl Debug for ProblemCode
impl Debug for ProblemCode
Source§impl<'de> Deserialize<'de> for ProblemCode
impl<'de> Deserialize<'de> for ProblemCode
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 ProblemCode
impl Display for ProblemCode
impl Eq for ProblemCode
Source§impl From<&String> for ProblemCode
impl From<&String> for ProblemCode
Source§impl From<&str> for ProblemCode
impl From<&str> for ProblemCode
Source§impl From<ProblemCode> for String
impl From<ProblemCode> for String
Source§fn from(value: ProblemCode) -> Self
fn from(value: ProblemCode) -> Self
Converts to this type from the input type.
Source§impl From<String> for ProblemCode
impl From<String> for ProblemCode
Source§impl Hash for ProblemCode
impl Hash for ProblemCode
Source§impl PartialEq for ProblemCode
impl PartialEq for ProblemCode
Source§impl PartialEq<&str> for ProblemCode
impl PartialEq<&str> for ProblemCode
Source§impl PartialEq<ProblemCode> for &str
impl PartialEq<ProblemCode> for &str
Source§impl PartialEq<str> for ProblemCode
impl PartialEq<str> for ProblemCode
Auto Trait Implementations§
impl Forget for ProblemCode
impl Freeze for ProblemCode
impl Move for ProblemCode
impl RefUnwindSafe for ProblemCode
impl Send for ProblemCodewhere
RawVecInner: Send,
impl Sync for ProblemCodewhere
RawVecInner: Sync,
impl Unpin for ProblemCode
impl UnsafeUnpin for ProblemCode
impl UnwindSafe for ProblemCodewhere
RawVecInner: UnwindSafe,
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