Struct schematic_types::IntegerType
source · 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>,
pub name: Option<String>,
}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>§name: Option<String>Implementations§
source§impl IntegerType
impl IntegerType
pub fn new(kind: IntegerKind, value: isize) -> Self
pub fn new_unsigned(kind: IntegerKind, value: usize) -> Self
Trait Implementations§
source§impl Clone for IntegerType
impl Clone for IntegerType
source§fn clone(&self) -> IntegerType
fn clone(&self) -> IntegerType
Returns a copy 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 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
Auto Trait Implementations§
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