Struct hdbconnect::types::HdbDecimal [−][src]
pub struct HdbDecimal { /* fields omitted */ }
Representation of HANA's DECIMAL type.
Methods
impl HdbDecimal
[src]
impl HdbDecimal
pub fn parse_from_str(s: &str) -> Result<HdbDecimal, SerializationError>
[src]
pub fn parse_from_str(s: &str) -> Result<HdbDecimal, SerializationError>
Parse from a string representation.
pub fn from_decimal(decimal: Decimal) -> Result<HdbDecimal, SerializationError>
[src]
pub fn from_decimal(decimal: Decimal) -> Result<HdbDecimal, SerializationError>
Creates a HdbDecimal from a rust_decimal::Decimal
.
pub fn into_decimal(self) -> Decimal
[src]
pub fn into_decimal(self) -> Decimal
Converts into a rust_decimal::Decimal
representation.
pub fn as_decimal(&self) -> Decimal
[src]
pub fn as_decimal(&self) -> Decimal
Returns a rust_decimal::Decimal
representation.
Trait Implementations
impl Clone for HdbDecimal
[src]
impl Clone for HdbDecimal
fn clone(&self) -> HdbDecimal
[src]
fn clone(&self) -> HdbDecimal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for HdbDecimal
[src]
impl Debug for HdbDecimal
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for HdbDecimal
[src]
impl Display for HdbDecimal
Auto Trait Implementations
impl Send for HdbDecimal
impl Send for HdbDecimal
impl Sync for HdbDecimal
impl Sync for HdbDecimal