pub struct AccessDenied {
pub agent: String,
pub resource: String,
pub layer: DenyLayer,
pub reason: String,
pub suggestion: Option<String>,
}Expand description
Authorization denial — includes the layer, reason, and user-facing suggestion.
Fields§
§agent: StringAgent that was denied.
resource: StringResource that was accessed.
layer: DenyLayerWhich security layer produced the denial.
reason: StringMachine-readable reason.
suggestion: Option<String>User-facing suggestion for resolution.
Trait Implementations§
Source§impl Clone for AccessDenied
impl Clone for AccessDenied
Source§fn clone(&self) -> AccessDenied
fn clone(&self) -> AccessDenied
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 AccessDenied
impl Debug for AccessDenied
Auto Trait Implementations§
impl Freeze for AccessDenied
impl RefUnwindSafe for AccessDenied
impl Send for AccessDenied
impl Sync for AccessDenied
impl Unpin for AccessDenied
impl UnsafeUnpin for AccessDenied
impl UnwindSafe for AccessDenied
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