pub struct Numeric { /* private fields */ }
Expand description
Represent a sql Decimal / Numeric type. It is stored in a i128 and has a maximum precision of 38 decimals.
A recommended way of dealing with numeric values is by enabling the
rust_decimal
feature and using its Decimal
type instead.
Implementations§
Trait Implementations§
source§impl FromSqlOwned for Numeric
impl FromSqlOwned for Numeric
source§fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>
fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>
Returns the value,
None
being a null value, taking the ownership.source§impl<'a> IntoSql<'a> for Numeric
impl<'a> IntoSql<'a> for Numeric
source§fn into_sql(self) -> ColumnData<'a>
fn into_sql(self) -> ColumnData<'a>
Convert to a value understood by the SQL Server. Conversion by-value.
source§impl ToSql for Numeric
impl ToSql for Numeric
source§fn to_sql(&self) -> ColumnData<'_>
fn to_sql(&self) -> ColumnData<'_>
Convert to a value understood by the SQL Server. Conversion
by-reference.
impl Copy for Numeric
impl Eq for Numeric
Auto Trait Implementations§
impl Freeze for Numeric
impl RefUnwindSafe for Numeric
impl Send for Numeric
impl Sync for Numeric
impl Unpin for Numeric
impl UnwindSafe for Numeric
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)