Struct sea_schema::mysql::def::NumericAttr [−][src]
pub struct NumericAttr {
pub maximum: Option<u32>,
pub decimal: Option<u32>,
pub unsigned: Option<bool>,
pub zero_fill: Option<bool>,
}
This is supported 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
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more