pub struct NumberValidation {
pub multiple_of: Option<f64>,
pub maximum: Option<f64>,
pub exclusive_maximum: Option<f64>,
pub minimum: Option<f64>,
pub exclusive_minimum: Option<f64>,
}
Expand description
Properties of a SchemaObject
which define validation assertions for numbers.
Fields§
§multiple_of: Option<f64>
The multipleOf
keyword.
maximum: Option<f64>
The maximum
keyword.
exclusive_maximum: Option<f64>
The exclusiveMaximum
keyword.
minimum: Option<f64>
The minimum
keyword.
exclusive_minimum: Option<f64>
The exclusiveMinimum
keyword.
Trait Implementations§
Source§impl Clone for NumberValidation
impl Clone for NumberValidation
Source§fn clone(&self) -> NumberValidation
fn clone(&self) -> NumberValidation
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 NumberValidation
impl Debug for NumberValidation
Source§impl Default for NumberValidation
impl Default for NumberValidation
Source§fn default() -> NumberValidation
fn default() -> NumberValidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NumberValidationwhere
NumberValidation: Default,
impl<'de> Deserialize<'de> for NumberValidationwhere
NumberValidation: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NumberValidation
impl PartialEq for NumberValidation
Source§impl Serialize for NumberValidation
impl Serialize for NumberValidation
impl StructuralPartialEq for NumberValidation
Auto Trait Implementations§
impl Freeze for NumberValidation
impl RefUnwindSafe for NumberValidation
impl Send for NumberValidation
impl Sync for NumberValidation
impl Unpin for NumberValidation
impl UnwindSafe for NumberValidation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)