pub trait ReasonCatalog {
// Required method
fn render(&self, reason: &DenialReason, locale: &Locale) -> String;
}Expand description
Presentation adapter for localized denial reasons.
Required Methods§
Sourcefn render(&self, reason: &DenialReason, locale: &Locale) -> String
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".