pub struct DecimalLimits {
pub max_precision: u16,
pub max_scale: u16,
pub scale_within_precision: bool,
pub max_integer_digits: Option<u16>,
}Expand description
The widest exact decimal one engine’s column holds.
Every engine that records one refuses a precision of zero, so the fewest digits is always one and is not a field.
Fields§
§max_precision: u16The most digits a column may declare.
max_scale: u16The most digits after the decimal point.
scale_within_precision: boolWhether the digits after the point must be no more than the digits in all. Some engines let a column hold only a fraction smaller than a thousandth, with more scale than precision; most refuse it.
max_integer_digits: Option<u16>The most digits before the decimal point, where the engine bounds
them apart from the digits in all; None where the digits in all are
the only bound. BigQuery holds 76 digits, but never more than 38 of
them before the point.
Implementations§
Trait Implementations§
Source§impl Clone for DecimalLimits
impl Clone for DecimalLimits
impl Copy for DecimalLimits
Source§impl Debug for DecimalLimits
impl Debug for DecimalLimits
impl Eq for DecimalLimits
Source§impl PartialEq for DecimalLimits
impl PartialEq for DecimalLimits
impl StructuralPartialEq for DecimalLimits
Auto Trait Implementations§
impl Forget for DecimalLimits
impl Freeze for DecimalLimits
impl Move for DecimalLimits
impl RefUnwindSafe for DecimalLimits
impl Send for DecimalLimits
impl Sync for DecimalLimits
impl Unpin for DecimalLimits
impl UnsafeUnpin for DecimalLimits
impl UnwindSafe for DecimalLimits
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