Struct vector_config_common::schema::NumberValidation
source · 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
)