Enum samling::ApiErrorCode
source · pub enum ApiErrorCode {
Show 42 variants
InvalidUserCredentials,
UserEmailAlreadyExists,
UserEmailNotFound,
EmptySlugDisallowed,
FailedPasswordHashing,
FailedPasswordValidation,
InvalidToken,
ExpiredToken,
UnverifiedEmail,
InvalidDbRoleId,
MissingPermissions,
ApplicationNotReady,
ImageUploadsUnavailable,
PathRejection,
QueryParsingError,
QueryRejection,
ExternalRequestError,
JsonError,
PathJsonError,
UrlParseError,
CsvError,
XlsxError,
Base64DecodeError,
InvalidHttpHeaderValue,
DbError,
DbPoolError,
DbCreatePoolError,
DbBuildError,
IdNotFound,
ExternalIdNotFound,
SlugNotFound,
IdAlreadyExists,
SlugAlreadyExists,
ExternalIdAlreadyExists,
InvalidEntityRef,
ExplicitIdCreationDisallowed,
ExternalIdReferenceUnsupported,
SlugReferenceUnsupported,
ImageBackendMisconfigured,
ImageAlreadyExists,
IoError,
MissingEntityRefPathParameter,
}Expand description
Auto-generated discriminant enum variants
Variants§
InvalidUserCredentials
UserEmailAlreadyExists
UserEmailNotFound
EmptySlugDisallowed
FailedPasswordHashing
FailedPasswordValidation
InvalidToken
ExpiredToken
UnverifiedEmail
InvalidDbRoleId
MissingPermissions
ApplicationNotReady
PathRejection
QueryParsingError
QueryRejection
ExternalRequestError
JsonError
PathJsonError
UrlParseError
CsvError
XlsxError
Base64DecodeError
InvalidHttpHeaderValue
DbError
DbPoolError
DbCreatePoolError
DbBuildError
IdNotFound
ExternalIdNotFound
SlugNotFound
IdAlreadyExists
SlugAlreadyExists
ExternalIdAlreadyExists
InvalidEntityRef
ExplicitIdCreationDisallowed
ExternalIdReferenceUnsupported
SlugReferenceUnsupported
ImageBackendMisconfigured
ImageAlreadyExists
IoError
MissingEntityRefPathParameter
Trait Implementations§
source§impl Clone for ApiErrorCode
impl Clone for ApiErrorCode
source§fn clone(&self) -> ApiErrorCode
fn clone(&self) -> ApiErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ApiErrorCode
impl Debug for ApiErrorCode
source§impl<'_enum> From<&'_enum Error> for ApiErrorCode
impl<'_enum> From<&'_enum Error> for ApiErrorCode
source§fn from(val: &'_enum Error) -> ApiErrorCode
fn from(val: &'_enum Error) -> ApiErrorCode
Converts to this type from the input type.
source§impl From<Error> for ApiErrorCode
impl From<Error> for ApiErrorCode
source§fn from(val: Error) -> ApiErrorCode
fn from(val: Error) -> ApiErrorCode
Converts to this type from the input type.
source§impl JsonSchema for ApiErrorCode
impl JsonSchema for ApiErrorCode
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq<ApiErrorCode> for ApiErrorCode
impl PartialEq<ApiErrorCode> for ApiErrorCode
source§fn eq(&self, other: &ApiErrorCode) -> bool
fn eq(&self, other: &ApiErrorCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ApiErrorCode
impl Serialize for ApiErrorCode
impl Copy for ApiErrorCode
impl Eq for ApiErrorCode
impl StructuralEq for ApiErrorCode
impl StructuralPartialEq for ApiErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ApiErrorCode
impl Send for ApiErrorCode
impl Sync for ApiErrorCode
impl Unpin for ApiErrorCode
impl UnwindSafe for ApiErrorCode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.