pub struct IntegerSchema {
pub constant: Option<i64>,
pub choices: Option<Vec<i64>>,
pub minimum: Option<i64>,
pub maximum: Option<i64>,
}Expand description
An integer schema and everything that constrains it.
Fields§
§constant: Option<i64>The only value permitted, if the schema names one.
choices: Option<Vec<i64>>The closed set of permitted values, if the schema names one.
minimum: Option<i64>Smallest permitted value, inclusive.
maximum: Option<i64>Largest permitted value, inclusive.
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 (const: unstable) · 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
Source§fn eq(&self, other: &IntegerSchema) -> bool
fn eq(&self, other: &IntegerSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.