pub enum PublicApiErrorCode {
AuthenticationFailed,
AccessDenied,
InvalidRequest,
InvalidQuery,
InvalidBody,
ResourceNotFound,
Conflict,
RateLimited,
MethodNotAllowed,
InternalError,
Unknown,
}Expand description
PublicApiErrorCode : Stable machine-readable error code returned by the evaluators and evaluation-rules API. Stable machine-readable error code returned by the evaluators and evaluation-rules API.
Variants§
AuthenticationFailed
AccessDenied
InvalidRequest
InvalidQuery
InvalidBody
ResourceNotFound
Conflict
RateLimited
MethodNotAllowed
InternalError
Unknown
A value this client does not know. It is not kept: this serializes as "unknown", which the API does not list.
Trait Implementations§
Source§impl Clone for PublicApiErrorCode
impl Clone for PublicApiErrorCode
impl Copy for PublicApiErrorCode
Source§impl Debug for PublicApiErrorCode
impl Debug for PublicApiErrorCode
Source§impl<'de> Deserialize<'de> for PublicApiErrorCode
impl<'de> Deserialize<'de> for PublicApiErrorCode
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 PublicApiErrorCode
impl Display for PublicApiErrorCode
impl Eq for PublicApiErrorCode
Source§impl FromStr for PublicApiErrorCode
impl FromStr for PublicApiErrorCode
Source§impl Hash for PublicApiErrorCode
impl Hash for PublicApiErrorCode
Source§impl Ord for PublicApiErrorCode
impl Ord for PublicApiErrorCode
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 PublicApiErrorCode
impl PartialEq for PublicApiErrorCode
Source§impl PartialOrd for PublicApiErrorCode
impl PartialOrd for PublicApiErrorCode
Source§impl Serialize for PublicApiErrorCode
impl Serialize for PublicApiErrorCode
impl StructuralPartialEq for PublicApiErrorCode
Source§impl TryFrom<&String> for PublicApiErrorCode
impl TryFrom<&String> for PublicApiErrorCode
Source§type Error = ParseEnumError
type Error = ParseEnumError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for PublicApiErrorCode
impl TryFrom<&str> for PublicApiErrorCode
Source§type Error = ParseEnumError
type Error = ParseEnumError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for PublicApiErrorCode
impl TryFrom<String> for PublicApiErrorCode
Source§type Error = ParseEnumError
type Error = ParseEnumError
The type returned in the event of a conversion error.
Source§impl Validate for PublicApiErrorCode
impl Validate for PublicApiErrorCode
Source§fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
Pushes every value that breaks a keyword onto
errors, with its path below path, and nothing when the value
is valid. validate() calls it with Path::root; a model calls it on the models it holds with their path.Auto Trait Implementations§
impl Forget for PublicApiErrorCode
impl Freeze for PublicApiErrorCode
impl Move for PublicApiErrorCode
impl RefUnwindSafe for PublicApiErrorCode
impl Send for PublicApiErrorCode
impl Sync for PublicApiErrorCode
impl Unpin for PublicApiErrorCode
impl UnsafeUnpin for PublicApiErrorCode
impl UnwindSafe for PublicApiErrorCode
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