pub struct LengthValidator { /* private fields */ }Expand description
Validator that checks string length.
Implementations§
Trait Implementations§
Source§impl Default for LengthValidator
impl Default for LengthValidator
Source§impl<Deps: Send + Sync> OutputValidator<String, Deps> for LengthValidator
impl<Deps: Send + Sync> OutputValidator<String, Deps> for LengthValidator
Source§fn validate<'life0, 'life1, 'async_trait>(
&'life0 self,
output: String,
_ctx: &'life1 RunContext<Deps>,
) -> Pin<Box<dyn Future<Output = Result<String, OutputValidationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn validate<'life0, 'life1, 'async_trait>(
&'life0 self,
output: String,
_ctx: &'life1 RunContext<Deps>,
) -> Pin<Box<dyn Future<Output = Result<String, OutputValidationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Validate and optionally transform the output. Read more
Auto Trait Implementations§
impl Freeze for LengthValidator
impl RefUnwindSafe for LengthValidator
impl Send for LengthValidator
impl Sync for LengthValidator
impl Unpin for LengthValidator
impl UnwindSafe for LengthValidator
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