pub struct PreBodyValidators { /* private fields */ }Expand description
A collection of pre-body validators.
Implementations§
Source§impl PreBodyValidators
impl PreBodyValidators
Sourcepub fn add<V: PreBodyValidator + 'static>(&mut self, validator: V)
pub fn add<V: PreBodyValidator + 'static>(&mut self, validator: V)
Add a validator to the collection.
Sourcepub fn with<V: PreBodyValidator + 'static>(self, validator: V) -> Self
pub fn with<V: PreBodyValidator + 'static>(self, validator: V) -> Self
Add a validator and return self for chaining.
Trait Implementations§
Source§impl Default for PreBodyValidators
impl Default for PreBodyValidators
Source§fn default() -> PreBodyValidators
fn default() -> PreBodyValidators
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PreBodyValidators
impl !RefUnwindSafe for PreBodyValidators
impl Send for PreBodyValidators
impl Sync for PreBodyValidators
impl Unpin for PreBodyValidators
impl !UnwindSafe for PreBodyValidators
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).