pub struct DenialResponseConfig { /* private fields */ }Expand description
Presentation settings for policy denials.
Implementations§
Source§impl DenialResponseConfig
impl DenialResponseConfig
Sourcepub fn with_forbidden_fallback(self, message: impl Into<String>) -> Self
pub fn with_forbidden_fallback(self, message: impl Into<String>) -> Self
Uses this message when a forbidden denial has no stable reason.
Uses this message for hidden denials unless a generic hidden reason is configured.
Renders hidden denials through the catalog using this generic reason code.
The configured code is a replacement for the hidden policy reason, not the hidden policy reason itself.
§Errors
Returns gatekeep::GatekeepError::EmptyIdentifier when reason is
empty or contains only whitespace.
Trait Implementations§
Source§impl Clone for DenialResponseConfig
impl Clone for DenialResponseConfig
Source§fn clone(&self) -> DenialResponseConfig
fn clone(&self) -> DenialResponseConfig
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 DenialResponseConfig
impl Debug for DenialResponseConfig
Source§impl Default for DenialResponseConfig
impl Default for DenialResponseConfig
impl Eq for DenialResponseConfig
Source§impl PartialEq for DenialResponseConfig
impl PartialEq for DenialResponseConfig
impl StructuralPartialEq for DenialResponseConfig
Auto Trait Implementations§
impl Freeze for DenialResponseConfig
impl RefUnwindSafe for DenialResponseConfig
impl Send for DenialResponseConfig
impl Sync for DenialResponseConfig
impl Unpin for DenialResponseConfig
impl UnsafeUnpin for DenialResponseConfig
impl UnwindSafe for DenialResponseConfig
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