Enum diesel::pg::data_types::PgNumeric
[−]
[src]
pub enum PgNumeric {
Positive {
weight: i16,
scale: u16,
digits: Vec<i16>,
},
Negative {
weight: i16,
scale: u16,
digits: Vec<i16>,
},
NaN,
}Variants
PositiveFields of Positive
weight: i16 | |
scale: u16 | |
digits: Vec<i16> |
NegativeFields of Negative
weight: i16 | |
scale: u16 | |
digits: Vec<i16> |
NaN
Trait Implementations
impl Debug for PgNumeric[src]
impl Clone for PgNumeric[src]
fn clone(&self) -> PgNumeric[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for PgNumeric[src]
fn eq(&self, __arg_0: &PgNumeric) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &PgNumeric) -> bool[src]
This method tests for !=.
impl Eq for PgNumeric[src]
impl FromSql<Numeric, Pg> for PgNumeric[src]
impl ToSql<Numeric, Pg> for PgNumeric[src]
fn to_sql<W: Write>(
&self,
out: &mut ToSqlOutput<W, Pg>
) -> Result<IsNull, Box<Error + Send + Sync>>[src]
&self,
out: &mut ToSqlOutput<W, Pg>
) -> Result<IsNull, Box<Error + Send + Sync>>
impl<DB> FromSqlRow<Numeric, DB> for PgNumeric where
DB: Backend + HasSqlType<Numeric>,
PgNumeric: FromSql<Numeric, DB>, [src]
DB: Backend + HasSqlType<Numeric>,
PgNumeric: FromSql<Numeric, DB>,
fn build_from_row<R: Row<DB>>(
row: &mut R
) -> Result<Self, Box<Error + Send + Sync>>[src]
row: &mut R
) -> Result<Self, Box<Error + Send + Sync>>
fn fields_needed() -> usize[src]
The number of fields that this type will consume. Should be equal to the number of times you would call row.take() in build_from_row Read more
impl<DB> Queryable<Numeric, DB> for PgNumeric where
DB: Backend + HasSqlType<Numeric>,
PgNumeric: FromSqlRow<Numeric, DB>, [src]
DB: Backend + HasSqlType<Numeric>,
PgNumeric: FromSqlRow<Numeric, DB>,
impl<'a> AsExpression<Numeric> for PgNumeric[src]
type Expression = Bound<Numeric, Self>
fn as_expression(self) -> Self::Expression[src]
impl<'a, 'expr> AsExpression<Numeric> for &'expr PgNumeric[src]
type Expression = Bound<Numeric, Self>
fn as_expression(self) -> Self::Expression[src]
impl<'a> AsExpression<Nullable<Numeric>> for PgNumeric[src]
type Expression = Bound<Nullable<Numeric>, Self>
fn as_expression(self) -> Self::Expression[src]
impl<'a, 'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric[src]
type Expression = Bound<Nullable<Numeric>, Self>
fn as_expression(self) -> Self::Expression[src]
impl<'a, DB> ToSql<Nullable<Numeric>, DB> for PgNumeric where
DB: Backend + HasSqlType<Numeric>,
PgNumeric: ToSql<Numeric, DB>, [src]
DB: Backend + HasSqlType<Numeric>,
PgNumeric: ToSql<Numeric, DB>,