pub struct ValidateContext;Expand description
ValidateContext
Context that can be provided during validation.
NOTE: ValidateContext is reserved for future context-aware sanitization. The *_with() methods are currently thin wrappers that delegate to the stateless versions. In the future, we may pass runtime data (e.g. now, is_new, actor) here so validators can behave contextually without changing the trait shape.
Trait Implementations§
Source§impl Clone for ValidateContext
impl Clone for ValidateContext
Source§fn clone(&self) -> ValidateContext
fn clone(&self) -> ValidateContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidateContext
impl Debug for ValidateContext
Source§impl Default for ValidateContext
impl Default for ValidateContext
Source§fn default() -> ValidateContext
fn default() -> ValidateContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidateContext
impl RefUnwindSafe for ValidateContext
impl Send for ValidateContext
impl Sync for ValidateContext
impl Unpin for ValidateContext
impl UnwindSafe for ValidateContext
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