pub struct IntegerType {
pub default: Option<LiteralValue>,
pub enum_values: Option<Vec<isize>>,
pub format: Option<String>,
pub kind: IntegerKind,
pub max: Option<isize>,
pub max_exclusive: Option<isize>,
pub min: Option<isize>,
pub min_exclusive: Option<isize>,
pub multiple_of: Option<isize>,
}Fields§
§default: Option<LiteralValue>§enum_values: Option<Vec<isize>>§format: Option<String>§kind: IntegerKind§max: Option<isize>§max_exclusive: Option<isize>§min: Option<isize>§min_exclusive: Option<isize>§multiple_of: Option<isize>Implementations§
Source§impl IntegerType
impl IntegerType
Sourcepub fn new(kind: IntegerKind, value: isize) -> Self
pub fn new(kind: IntegerKind, value: isize) -> Self
Create a signed integer schema with the provided default value.
Sourcepub fn new_unsigned(kind: IntegerKind, value: usize) -> Self
pub fn new_unsigned(kind: IntegerKind, value: usize) -> Self
Create an unsigned integer schema with the provided default value.
Sourcepub fn new_kind(kind: IntegerKind) -> Self
pub fn new_kind(kind: IntegerKind) -> Self
Create an integer schema with the provided kind.
Trait Implementations§
Source§impl Clone for IntegerType
impl Clone for IntegerType
Source§fn clone(&self) -> IntegerType
fn clone(&self) -> IntegerType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntegerType
impl Debug for IntegerType
Source§impl Default for IntegerType
impl Default for IntegerType
Source§fn default() -> IntegerType
fn default() -> IntegerType
Returns the “default value” for a type. Read more
Source§impl Display for IntegerType
impl Display for IntegerType
Source§impl PartialEq for IntegerType
impl PartialEq for IntegerType
impl StructuralPartialEq for IntegerType
Auto Trait Implementations§
impl Freeze for IntegerType
impl RefUnwindSafe for IntegerType
impl Send for IntegerType
impl Sync for IntegerType
impl Unpin for IntegerType
impl UnwindSafe for IntegerType
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