Struct cassandra_protocol::types::decimal::Decimal
source · pub struct Decimal {
pub unscaled: BigInt,
pub scale: i32,
}
Expand description
Cassandra Decimal type
Fields§
§unscaled: BigInt
§scale: i32
Implementations§
Trait Implementations§
source§impl FromCdrs for Decimal
impl FromCdrs for Decimal
fn from_cdrs<T>(cdrs_type: T) -> CdrsResult<Option<Self>>where Self: Sized, T: AsRustType<Self>,
fn from_cdrs_r<T>(cdrs_type: T) -> CdrsResult<Self>where Self: Sized, T: AsRustType<Self>,
source§impl FromCdrsByName for Decimal
impl FromCdrsByName for Decimal
fn from_cdrs_by_name<T>(cdrs_type: &T, name: &str) -> CdrsResult<Option<Self>>where Self: Sized, T: ByName + IntoRustByName<Self>,
fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CdrsResult<Self>where Self: Sized, T: ByName + IntoRustByName<Self> + Debug,
source§impl IntoRustByIndex<Decimal> for Row
impl IntoRustByIndex<Decimal> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
source§impl IntoRustByIndex<Decimal> for Tuple
impl IntoRustByIndex<Decimal> for Tuple
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
source§impl IntoRustByName<Decimal> for Row
impl IntoRustByName<Decimal> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
source§impl IntoRustByName<Decimal> for Udt
impl IntoRustByName<Decimal> for Udt
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
source§impl Ord for Decimal
impl Ord for Decimal
source§impl PartialEq<Decimal> for Decimal
impl PartialEq<Decimal> for Decimal
source§impl PartialOrd<Decimal> for Decimal
impl PartialOrd<Decimal> for Decimal
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more