pub struct IntegerSchema {
pub min: Bound<BigInt>,
pub max: Bound<BigInt>,
pub multiple_of: Option<BigInt>,
}Expand description
Integer type constraints
Spec: lines 360-364
@variants.integer
range = .$types.range-string (optional)
multiple-of = .integer (optional)Note: Range string is parsed in the converter to Bound
Fields§
§min: Bound<BigInt>Minimum value constraint (parsed from range string)
max: Bound<BigInt>Maximum value constraint (parsed from range string)
multiple_of: Option<BigInt>Multiple-of constraint
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 PartialEq for IntegerSchema
impl PartialEq 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