pub enum ValidationMeasure {
Count(u64),
Bytes(u64),
Float(f32),
Range {
min: f32,
max: f32,
},
}Expand description
Observed count, byte length, float, or documented range attached to a
ValidationError.
Variants§
Count(u64)
Collection length or identifier code.
Bytes(u64)
UTF-8 byte length of a string.
Float(f32)
Observed f32 (compared by bits; may be NaN or ±Inf).
Range
Inclusive documented range that a float must occupy.
Trait Implementations§
Source§impl Clone for ValidationMeasure
impl Clone for ValidationMeasure
impl Copy for ValidationMeasure
Source§impl Debug for ValidationMeasure
impl Debug for ValidationMeasure
Source§impl Display for ValidationMeasure
impl Display for ValidationMeasure
impl Eq for ValidationMeasure
Auto Trait Implementations§
impl Freeze for ValidationMeasure
impl RefUnwindSafe for ValidationMeasure
impl Send for ValidationMeasure
impl Sync for ValidationMeasure
impl Unpin for ValidationMeasure
impl UnsafeUnpin for ValidationMeasure
impl UnwindSafe for ValidationMeasure
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