pub type Numeric = BigDecimal;Available on crate feature
numeric only.Expand description
Rust type for numeric.
Aliased Type§
pub struct Numeric { /* private fields */ }Trait Implementations§
Source§impl FromSql for Numeric
impl FromSql for Numeric
Source§fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
Create a new struct from the text representation. Read more
Source§fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
Create a new struct from the binary representation. Read more
Source§fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
Create a new struct from SQL value.