Struct sea_schema::mysql::def::NumericAttr
source · [−]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
sourceimpl Clone for NumericAttr
impl Clone for NumericAttr
sourcefn clone(&self) -> NumericAttr
fn clone(&self) -> NumericAttr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NumericAttr
impl Debug for NumericAttr
sourceimpl Default for NumericAttr
impl Default for NumericAttr
sourcefn default() -> NumericAttr
fn default() -> NumericAttr
Returns the “default value” for a type. Read more
sourceimpl PartialEq<NumericAttr> for NumericAttr
impl PartialEq<NumericAttr> for NumericAttr
sourcefn eq(&self, other: &NumericAttr) -> bool
fn eq(&self, other: &NumericAttr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NumericAttr) -> bool
fn ne(&self, other: &NumericAttr) -> bool
This method tests for !=
.
impl StructuralPartialEq for NumericAttr
Auto Trait Implementations
impl RefUnwindSafe for NumericAttr
impl Send for NumericAttr
impl Sync for NumericAttr
impl Unpin for NumericAttr
impl UnwindSafe for NumericAttr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more