pub struct RulesBuilder<T, E>{
pub fields: HashMap<String, Box<dyn ValidateFieldAsync<T, E>>>,
pub nested: HashMap<String, Box<dyn IValidate<T, E>>>,
pub _phantom: PhantomData<E>,
}Fields§
§fields: HashMap<String, Box<dyn ValidateFieldAsync<T, E>>>§nested: HashMap<String, Box<dyn IValidate<T, E>>>§_phantom: PhantomData<E>Implementations§
Source§impl<T, E> RulesBuilder<T, E>
impl<T, E> RulesBuilder<T, E>
Trait Implementations§
Auto Trait Implementations§
impl<T, E> !RefUnwindSafe for RulesBuilder<T, E>
impl<T, E> !UnwindSafe for RulesBuilder<T, E>
impl<T, E> Freeze for RulesBuilder<T, E>
impl<T, E> Send for RulesBuilder<T, E>
impl<T, E> Sync for RulesBuilder<T, E>
impl<T, E> Unpin for RulesBuilder<T, E>where
E: Unpin,
impl<T, E> UnsafeUnpin for RulesBuilder<T, E>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more