pub struct IsPositive;Expand description
Validates value is positive
Implementations§
Source§impl IsPositive
impl IsPositive
pub fn validate_i32(value: i32, field: &str) -> Result<(), ValidationError>
pub fn validate_f64(value: f64, field: &str) -> Result<(), ValidationError>
Auto Trait Implementations§
impl Freeze for IsPositive
impl RefUnwindSafe for IsPositive
impl Send for IsPositive
impl Sync for IsPositive
impl Unpin for IsPositive
impl UnwindSafe for IsPositive
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> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging