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>>
fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CdrsResult<Self>
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 for Decimal
impl PartialEq for Decimal
source§impl PartialOrd for Decimal
impl PartialOrd 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 moreimpl Eq for Decimal
impl StructuralPartialEq for Decimal
Auto Trait Implementations§
impl Freeze for Decimal
impl RefUnwindSafe for Decimal
impl Send for Decimal
impl Sync for Decimal
impl Unpin for Decimal
impl UnwindSafe for Decimal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more