pub enum CedrusError {
BadRequest,
NotFound,
DatabaseError(DatabaseError),
CacheError(CacheError),
SerdeJsonError(Error),
SchemaError(SchemaError),
EntitiesError(EntitiesError),
PolicyFromJsonError(PolicyFromJsonError),
PolicyToJsonError(PolicyToJsonError),
PolicySetError(PolicySetError),
ContextJsonError(ContextJsonError),
RequestValidationError(RequestValidationError),
}Variants§
BadRequest
NotFound
DatabaseError(DatabaseError)
CacheError(CacheError)
SerdeJsonError(Error)
SchemaError(SchemaError)
EntitiesError(EntitiesError)
PolicyFromJsonError(PolicyFromJsonError)
PolicyToJsonError(PolicyToJsonError)
PolicySetError(PolicySetError)
ContextJsonError(ContextJsonError)
RequestValidationError(RequestValidationError)
Trait Implementations§
Source§impl Debug for CedrusError
impl Debug for CedrusError
Source§impl Display for CedrusError
impl Display for CedrusError
Source§impl Error for CedrusError
impl Error for CedrusError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CacheError> for CedrusError
impl From<CacheError> for CedrusError
Source§fn from(error: CacheError) -> Self
fn from(error: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<ContextJsonError> for CedrusError
impl From<ContextJsonError> for CedrusError
Source§fn from(error: ContextJsonError) -> Self
fn from(error: ContextJsonError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for CedrusError
impl From<DatabaseError> for CedrusError
Source§fn from(error: DatabaseError) -> Self
fn from(error: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<EntitiesError> for CedrusError
impl From<EntitiesError> for CedrusError
Source§fn from(error: EntitiesError) -> Self
fn from(error: EntitiesError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CedrusError
impl From<Error> for CedrusError
Source§impl From<PolicyFromJsonError> for CedrusError
impl From<PolicyFromJsonError> for CedrusError
Source§fn from(error: PolicyFromJsonError) -> Self
fn from(error: PolicyFromJsonError) -> Self
Converts to this type from the input type.
Source§impl From<PolicySetError> for CedrusError
impl From<PolicySetError> for CedrusError
Source§fn from(error: PolicySetError) -> Self
fn from(error: PolicySetError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyToJsonError> for CedrusError
impl From<PolicyToJsonError> for CedrusError
Source§fn from(error: PolicyToJsonError) -> Self
fn from(error: PolicyToJsonError) -> Self
Converts to this type from the input type.
Source§impl From<RequestValidationError> for CedrusError
impl From<RequestValidationError> for CedrusError
Source§fn from(error: RequestValidationError) -> Self
fn from(error: RequestValidationError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for CedrusError
impl From<SchemaError> for CedrusError
Source§fn from(error: SchemaError) -> Self
fn from(error: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CedrusError
impl !UnwindSafe for CedrusError
impl Freeze for CedrusError
impl Send for CedrusError
impl Sync for CedrusError
impl Unpin for CedrusError
impl UnsafeUnpin for CedrusError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more