pub struct AssertTrue;
Expand description
The value must be true.
The validation function can be applied in the FieldName
context.
It is implemented for all types T
that implement the HasCheckedValue
property trait.
Trait Implementations§
Source§impl Clone for AssertTrue
impl Clone for AssertTrue
Source§fn clone(&self) -> AssertTrue
fn clone(&self) -> AssertTrue
Returns a copy 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 AssertTrue
impl Debug for AssertTrue
Source§impl PartialEq for AssertTrue
impl PartialEq for AssertTrue
Source§impl<T> Validate<AssertTrue, FieldName> for Twhere
T: HasCheckedValue,
impl<T> Validate<AssertTrue, FieldName> for Twhere
T: HasCheckedValue,
Source§fn validate(
self,
name: impl Into<FieldName>,
_constraint: &AssertTrue,
) -> Validation<AssertTrue, Self>
fn validate( self, name: impl Into<FieldName>, _constraint: &AssertTrue, ) -> Validation<AssertTrue, Self>
Validates this value for being compliant to the specified constraint
C
in the given context S
.impl Copy for AssertTrue
impl Eq for AssertTrue
impl StructuralPartialEq for AssertTrue
Auto Trait Implementations§
impl Freeze for AssertTrue
impl RefUnwindSafe for AssertTrue
impl Send for AssertTrue
impl Sync for AssertTrue
impl Unpin for AssertTrue
impl UnwindSafe for AssertTrue
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