pub struct NumberSchema { /* private fields */ }Expand description
A schema for a number (floating point or integer)
Implementations§
Source§impl NumberSchema
impl NumberSchema
Sourcepub fn with_range(self, range: impl Into<Option<RangeInclusive<f64>>>) -> Self
pub fn with_range(self, range: impl Into<Option<RangeInclusive<f64>>>) -> Self
Set the range of the number
Trait Implementations§
Source§impl Clone for NumberSchema
impl Clone for NumberSchema
Source§fn clone(&self) -> NumberSchema
fn clone(&self) -> NumberSchema
Returns a duplicate 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 NumberSchema
impl Debug for NumberSchema
Source§impl Default for NumberSchema
impl Default for NumberSchema
Auto Trait Implementations§
impl Freeze for NumberSchema
impl RefUnwindSafe for NumberSchema
impl Send for NumberSchema
impl Sync for NumberSchema
impl Unpin for NumberSchema
impl UnwindSafe for NumberSchema
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