pub struct IntegerLiteral {
pub multiple_of: Option<i64>,
pub minimum: Option<i64>,
pub maximum: Option<i64>,
pub exclusive_minimum: bool,
pub exclusive_maximum: bool,
}
Expand description
The constraints that may be applied to an integer literal schema.
Fields§
§multiple_of: Option<i64>
The integer must be a multiple of this value.
minimum: Option<i64>
The minimum value of the integer.
maximum: Option<i64>
The maximum value of the integer.
exclusive_minimum: bool
Whether the minimum value is exclusive.
Default is false
.
exclusive_maximum: bool
Whether the maximum value is exclusive.
Default is false
.
Trait Implementations§
Source§impl Clone for IntegerLiteral
impl Clone for IntegerLiteral
Source§fn clone(&self) -> IntegerLiteral
fn clone(&self) -> IntegerLiteral
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 IntegerLiteral
impl Debug for IntegerLiteral
Source§impl<'de> Deserialize<'de> for IntegerLiteral
impl<'de> Deserialize<'de> for IntegerLiteral
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
Auto Trait Implementations§
impl Freeze for IntegerLiteral
impl RefUnwindSafe for IntegerLiteral
impl Send for IntegerLiteral
impl Sync for IntegerLiteral
impl Unpin for IntegerLiteral
impl UnwindSafe for IntegerLiteral
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