pub struct DecimalAmount(/* private fields */);Expand description
A canonical, non-negative decimal amount encoded as text.
Implementations§
Trait Implementations§
Source§impl Clone for DecimalAmount
impl Clone for DecimalAmount
Source§fn clone(&self) -> DecimalAmount
fn clone(&self) -> DecimalAmount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecimalAmount
impl Debug for DecimalAmount
Source§impl<'de> Deserialize<'de> for DecimalAmount
impl<'de> Deserialize<'de> for DecimalAmount
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 DecimalAmount
impl Display for DecimalAmount
impl Eq for DecimalAmount
Source§impl FromStr for DecimalAmount
impl FromStr for DecimalAmount
Source§impl Hash for DecimalAmount
impl Hash for DecimalAmount
Source§impl Ord for DecimalAmount
impl Ord for DecimalAmount
Source§fn cmp(&self, other: &DecimalAmount) -> Ordering
fn cmp(&self, other: &DecimalAmount) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DecimalAmount
impl PartialEq for DecimalAmount
Source§impl PartialOrd for DecimalAmount
impl PartialOrd for DecimalAmount
Source§impl Serialize for DecimalAmount
impl Serialize for DecimalAmount
impl StructuralPartialEq for DecimalAmount
Auto Trait Implementations§
impl Freeze for DecimalAmount
impl RefUnwindSafe for DecimalAmount
impl Send for DecimalAmount
impl Sync for DecimalAmount
impl Unpin for DecimalAmount
impl UnsafeUnpin for DecimalAmount
impl UnwindSafe for DecimalAmount
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