pub enum DenialError {
Forbidden,
NotFound,
}Expand description
HTTP denial category returned by the axum adapter.
Variants§
Forbidden
The resource may exist, but the principal is not allowed to access it.
NotFound
The denial must be presented as a generic missing resource.
Trait Implementations§
Source§impl Clone for DenialError
impl Clone for DenialError
Source§fn clone(&self) -> DenialError
fn clone(&self) -> DenialError
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 moreimpl Copy for DenialError
Source§impl Debug for DenialError
impl Debug for DenialError
Source§impl<'de> Deserialize<'de> for DenialError
impl<'de> Deserialize<'de> for DenialError
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
impl Eq for DenialError
Source§impl PartialEq for DenialError
impl PartialEq for DenialError
Source§impl Serialize for DenialError
impl Serialize for DenialError
impl StructuralPartialEq for DenialError
Auto Trait Implementations§
impl Freeze for DenialError
impl RefUnwindSafe for DenialError
impl Send for DenialError
impl Sync for DenialError
impl Unpin for DenialError
impl UnsafeUnpin for DenialError
impl UnwindSafe for DenialError
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