pub struct ProblemDetailsPlugin { /* private fields */ }Expand description
Compiled RFC 9457 response normalizer backing ProblemDetailsHook.
Implementations§
Source§impl ProblemDetailsPlugin
Normalization engine for ProblemDetailsPlugin.
impl ProblemDetailsPlugin
Normalization engine for ProblemDetailsPlugin.
Sourcepub fn new(config: ProblemDetailsConfig) -> Self
pub fn new(config: ProblemDetailsConfig) -> Self
Compiles a standalone ProblemDetailsPlugin from config.
§Arguments
ProblemDetailsConfig- Problem Details configuration.
§Returns
Self- Compiled plugin.
Sourcepub fn init(config: ProblemDetailsConfig) -> &'static Self
pub fn init(config: ProblemDetailsConfig) -> &'static Self
Initializes the global ProblemDetailsPlugin singleton once.
§Arguments
ProblemDetailsConfig- Configuration.
§Returns
&'static Self- Reference to the global plugin.
Sourcepub fn get() -> Option<&'static Self>
pub fn get() -> Option<&'static Self>
Returns the initialized global ProblemDetailsPlugin, if configured.
§Returns
Option<&'static Self>- Reference to the global plugin, orNone.
Trait Implementations§
Source§impl Clone for ProblemDetailsPlugin
impl Clone for ProblemDetailsPlugin
Auto Trait Implementations§
impl Forget for ProblemDetailsPlugin
impl Freeze for ProblemDetailsPlugin
impl Move for ProblemDetailsPlugin
impl RefUnwindSafe for ProblemDetailsPlugin
impl Send for ProblemDetailsPluginwhere
RawVecInner: Send,
impl Sync for ProblemDetailsPluginwhere
RawVecInner: Sync,
impl Unpin for ProblemDetailsPlugin
impl UnsafeUnpin for ProblemDetailsPlugin
impl UnwindSafe for ProblemDetailsPluginwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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