pub enum BackendError {
NotFound(String),
Conflict(String),
BadRequest(String),
Forbidden,
Internal(String),
}Expand description
Backend-Fehler.
Variants§
NotFound(String)
Resource nicht gefunden.
Conflict(String)
Resource existiert bereits.
BadRequest(String)
Anfrage-Body nicht parsbar.
Forbidden
AccessController hat Decision::Deny zurueckgegeben.
Internal(String)
Unerwarteter interner Fehler.
Trait Implementations§
Source§impl Clone for BackendError
impl Clone for BackendError
Source§fn clone(&self) -> BackendError
fn clone(&self) -> BackendError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackendError
impl Debug for BackendError
Source§impl PartialEq for BackendError
impl PartialEq for BackendError
Source§fn eq(&self, other: &BackendError) -> bool
fn eq(&self, other: &BackendError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BackendError
impl StructuralPartialEq for BackendError
Auto Trait Implementations§
impl Freeze for BackendError
impl RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl UnsafeUnpin for BackendError
impl UnwindSafe for BackendError
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