pub struct SetDeferred<W: Warning>(/* private fields */);Expand description
A set of Warnings transported through the system using a VerdictDeferred or CaveatDeferred.
This set is considered deferred as the Warnings need to be associated with a json::Element
to become Warnings.
NOTE: The deferred types are used to avoid passing json::Element references
to functions just to create Warnings.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for SetDeferred<W>
impl<W> RefUnwindSafe for SetDeferred<W>where
W: RefUnwindSafe,
impl<W> Send for SetDeferred<W>
impl<W> Sync for SetDeferred<W>
impl<W> Unpin for SetDeferred<W>where
W: Unpin,
impl<W> UnsafeUnpin for SetDeferred<W>
impl<W> UnwindSafe for SetDeferred<W>where
W: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.