pub struct NumericAttr {
pub maximum: Option<u32>,
pub decimal: Option<u32>,
pub unsigned: Option<bool>,
pub zero_fill: Option<bool>,
}
Available on crate features
mysql
and def
only.Fields§
§maximum: Option<u32>
For integer types, M is the maximum display width (deprecated). For decimal types, M is the total number of digits.
decimal: Option<u32>
Number of decimal digits.
unsigned: Option<bool>
Whether this number is unsigned
zero_fill: Option<bool>
Deprecated. Prefix 0 up to Z number of digits.
Implementations§
Trait Implementations§
Source§impl Clone for NumericAttr
impl Clone for NumericAttr
Source§fn clone(&self) -> NumericAttr
fn clone(&self) -> NumericAttr
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 NumericAttr
impl Debug for NumericAttr
Source§impl Default for NumericAttr
impl Default for NumericAttr
Source§fn default() -> NumericAttr
fn default() -> NumericAttr
Returns the “default value” for a type. Read more
Source§impl PartialEq for NumericAttr
impl PartialEq for NumericAttr
impl StructuralPartialEq for NumericAttr
Auto Trait Implementations§
impl Freeze for NumericAttr
impl RefUnwindSafe for NumericAttr
impl Send for NumericAttr
impl Sync for NumericAttr
impl Unpin for NumericAttr
impl UnwindSafe for NumericAttr
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