Skip to main content

ReasonCatalog

Trait ReasonCatalog 

Source
pub trait ReasonCatalog {
    // Required method
    fn render(&self, reason: &DenialReason, locale: &Locale) -> String;
}
Expand description

Presentation adapter for localized denial reasons.

Required Methods§

Source

fn render(&self, reason: &DenialReason, locale: &Locale) -> String

Renders a denial reason for the requested locale.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§