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
sourceimpl<'a> FromSql<'a> for Numeric
impl<'a> FromSql<'a> for Numeric
sourcefn from_sql(data: &'a ColumnData<'static>) -> Result<Option<Self>>
fn from_sql(data: &'a ColumnData<'static>) -> Result<Option<Self>>
Returns the value, None
being a null value, copying the value.
sourceimpl FromSqlOwned for Numeric
impl FromSqlOwned for Numeric
sourcefn 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.
sourceimpl<'a> IntoSql<'a> for Numeric
impl<'a> IntoSql<'a> for Numeric
sourcefn into_sql(self) -> ColumnData<'a>
fn into_sql(self) -> ColumnData<'a>
Convert to a value understood by the SQL Server. Conversion by-value.
sourceimpl ToSql for Numeric
impl ToSql for Numeric
sourcefn to_sql(&self) -> ColumnData<'_>
fn to_sql(&self) -> ColumnData<'_>
Convert to a value understood by the SQL Server. Conversion by-reference. Read more
impl Copy for Numeric
impl Eq for Numeric
Auto Trait Implementations
impl RefUnwindSafe for Numeric
impl Send for Numeric
impl Sync for Numeric
impl Unpin for Numeric
impl UnwindSafe for Numeric
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more