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 PartialEq<Numeric> for Numeric
impl PartialEq<Numeric> for Numeric
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.