pub struct IntegerSchema {
pub minimum: Option<i64>,
pub maximum: Option<i64>,
pub exclusive_minimum: Option<i64>,
pub exclusive_maximum: Option<i64>,
pub multiple_of: Option<i64>,
pub default: Option<i64>,
pub metadata: SchemaMetadata,
}Expand description
Integer type schema
Fields§
§minimum: Option<i64>§maximum: Option<i64>§exclusive_minimum: Option<i64>§exclusive_maximum: Option<i64>§multiple_of: Option<i64>§default: Option<i64>§metadata: SchemaMetadataTrait 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 PartialEq for IntegerSchema
impl PartialEq for IntegerSchema
Source§impl Serialize for IntegerSchema
impl Serialize 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