Enum block_tools::db::use_diesel::pg::data_types::PgNumeric [−][src]
Represents a NUMERIC value, closely mirroring the PG wire protocol representation
Variants
A positive number
Fields of Positive
A negative number
Fields of Negative
Not a number
Trait Implementations
impl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
[src]
type Expression = Bound<Nullable<Numeric>, &'expr PgNumeric>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgNumeric as AsExpression<Nullable<Numeric>>>::Expression
[src]
self
) -> <&'expr PgNumeric as AsExpression<Nullable<Numeric>>>::Expression
impl AsExpression<Nullable<Numeric>> for PgNumeric
[src]
type Expression = Bound<Nullable<Numeric>, PgNumeric>
The expression being returned
pub fn as_expression(
self
) -> <PgNumeric as AsExpression<Nullable<Numeric>>>::Expression
[src]
self
) -> <PgNumeric as AsExpression<Nullable<Numeric>>>::Expression
impl AsExpression<Numeric> for PgNumeric
[src]
type Expression = Bound<Numeric, PgNumeric>
The expression being returned
pub fn as_expression(self) -> <PgNumeric as AsExpression<Numeric>>::Expression
[src]
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
[src]
type Expression = Bound<Numeric, &'expr PgNumeric>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgNumeric as AsExpression<Numeric>>::Expression
[src]
self
) -> <&'expr PgNumeric as AsExpression<Numeric>>::Expression
impl Clone for PgNumeric
[src]
impl Debug for PgNumeric
[src]
impl Eq for PgNumeric
[src]
impl FromSql<Numeric, Pg> for PgNumeric
[src]
pub fn from_sql(
bytes: Option<&[u8]>
) -> Result<PgNumeric, Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&[u8]>
) -> Result<PgNumeric, Box<dyn Error + 'static + Send + Sync, Global>>
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgNumeric where
__DB: Backend,
PgNumeric: FromSql<__ST, __DB>,
[src]
__DB: Backend,
PgNumeric: FromSql<__ST, __DB>,
pub fn build_from_row<R>(
row: &mut R
) -> Result<PgNumeric, Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<__DB>,
[src]
row: &mut R
) -> Result<PgNumeric, Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<__DB>,
pub const FIELDS_NEEDED: usize
[src]
impl PartialEq<PgNumeric> for PgNumeric
[src]
impl<__ST, __DB> Queryable<__ST, __DB> for PgNumeric where
__DB: Backend,
PgNumeric: FromSql<__ST, __DB>,
[src]
__DB: Backend,
PgNumeric: FromSql<__ST, __DB>,
type Row = PgNumeric
The Rust type you'd like to map from. Read more
pub fn build(row: <PgNumeric as Queryable<__ST, __DB>>::Row) -> PgNumeric
[src]
impl StructuralEq for PgNumeric
[src]
impl StructuralPartialEq for PgNumeric
[src]
impl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumeric where
__DB: Backend,
PgNumeric: ToSql<Numeric, __DB>,
[src]
__DB: Backend,
PgNumeric: ToSql<Numeric, __DB>,
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, __DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, __DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl ToSql<Numeric, Pg> for PgNumeric
[src]
Auto Trait Implementations
impl RefUnwindSafe for PgNumeric
[src]
impl Send for PgNumeric
[src]
impl Sync for PgNumeric
[src]
impl Unpin for PgNumeric
[src]
impl UnwindSafe for PgNumeric
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,