pub struct IntegerSchema {
pub maximum: Option<Maximum<i64>>,
pub minimum: Option<Minimum<i64>>,
pub multiple_of: Option<NonZeroU64>,
}Expand description
An integer metadata.
Fields§
§maximum: Option<Maximum<i64>>The higher limit of the value.
minimum: Option<Minimum<i64>>The lower limit of the value.
multiple_of: Option<NonZeroU64>It adds the requirement that the numeric value must be a multiple of this.
Trait Implementations§
Source§impl Clone for IntegerSchema
impl Clone for IntegerSchema
Source§fn clone(&self) -> IntegerSchema
fn clone(&self) -> IntegerSchema
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 IntegerSchema
impl Debug for IntegerSchema
Source§impl Default for IntegerSchema
impl Default for IntegerSchema
Source§fn default() -> IntegerSchema
fn default() -> IntegerSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IntegerSchema
impl<'de> Deserialize<'de> for IntegerSchema
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 Hash for IntegerSchema
impl Hash for IntegerSchema
Source§impl PartialEq for IntegerSchema
impl PartialEq for IntegerSchema
Source§impl Serialize for IntegerSchema
impl Serialize for IntegerSchema
impl Eq for IntegerSchema
impl StructuralPartialEq for IntegerSchema
Auto Trait Implementations§
impl Freeze for IntegerSchema
impl RefUnwindSafe for IntegerSchema
impl Send for IntegerSchema
impl Sync for IntegerSchema
impl Unpin for IntegerSchema
impl UnwindSafe for IntegerSchema
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.