pub struct Denial {
pub status: u16,
pub reason: String,
}Expand description
A refused request: the status to answer with, and the reason.
Fields§
§status: u16HTTP status. 404 when the actor may not even read the target,
so a missing grant does not confirm that the repository exists;
403 when they can read it but not perform this operation.
reason: StringHuman-readable reason, safe to return to the caller.
Trait Implementations§
impl Eq for Denial
impl StructuralPartialEq for Denial
Auto Trait Implementations§
impl Freeze for Denial
impl RefUnwindSafe for Denial
impl Send for Denial
impl Sync for Denial
impl Unpin for Denial
impl UnsafeUnpin for Denial
impl UnwindSafe for Denial
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