pub struct Numeric;
Expand description
The arbitrary precision numeric SQL type.
This type is only supported on PostgreSQL and MySQL.
On SQLite, Double
should be used instead.
ToSql
impls
bigdecimal::BigDecimal
withfeature = ["numeric"]
FromSql
impls
bigdecimal::BigDecimal
withfeature = ["numeric"]
Trait Implementations
sourceimpl<'expr> AsExpression<Numeric> for &'expr PgNumeric
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
type Expression = Bound<Numeric, Self>
type Expression = Bound<Numeric, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Numeric> for &'expr2 &'expr PgNumeric
impl<'expr2, 'expr> AsExpression<Numeric> for &'expr2 &'expr PgNumeric
type Expression = Bound<Numeric, Self>
type Expression = Bound<Numeric, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Numeric> for PgNumeric
impl AsExpression<Numeric> for PgNumeric
type Expression = Bound<Numeric, Self>
type Expression = Bound<Numeric, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl HasSqlType<Numeric> for Pg
impl HasSqlType<Numeric> for Pg
sourcefn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl QueryId for Numeric
impl QueryId for Numeric
sourceconst HAS_STATIC_QUERY_ID: bool
const HAS_STATIC_QUERY_ID: bool
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl Copy for Numeric
impl NotNull for Numeric
impl SingleValue 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNullable for T where
T: NotNull,
impl<T> IntoNullable for T where
T: NotNull,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more