Struct bson::Decimal128
source · pub struct Decimal128 { /* private fields */ }
Expand description
Struct representing a BSON Decimal128 type.
Currently, this type can only be used to round-trip through BSON. See RUST-36 to track the progress towards a complete implementation.
Implementations§
Trait Implementations§
source§impl Clone for Decimal128
impl Clone for Decimal128
source§fn clone(&self) -> Decimal128
fn clone(&self) -> Decimal128
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Decimal128
impl Debug for Decimal128
source§impl<'de> Deserialize<'de> for Decimal128
impl<'de> Deserialize<'de> for Decimal128
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Decimal128
impl Display for Decimal128
source§impl From<Decimal128> for Bson
impl From<Decimal128> for Bson
source§fn from(d: Decimal128) -> Self
fn from(d: Decimal128) -> Self
Converts to this type from the input type.
source§impl From<Decimal128> for RawBson
impl From<Decimal128> for RawBson
source§fn from(d: Decimal128) -> Self
fn from(d: Decimal128) -> Self
Converts to this type from the input type.
source§impl<'a> From<Decimal128> for RawBsonRef<'a>
impl<'a> From<Decimal128> for RawBsonRef<'a>
source§fn from(d: Decimal128) -> Self
fn from(d: Decimal128) -> Self
Converts to this type from the input type.
source§impl PartialEq<Decimal128> for Decimal128
impl PartialEq<Decimal128> for Decimal128
source§fn eq(&self, other: &Decimal128) -> bool
fn eq(&self, other: &Decimal128) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.