#[repr(transparent)]pub struct Usd(pub Decimal);Tuple Fields§
§0: DecimalTrait Implementations§
Source§impl AddAssign for Usd
impl AddAssign for Usd
Source§fn add_assign(&mut self, other: Usd)
fn add_assign(&mut self, other: Usd)
Performs the
+= operation. Read moreSource§impl AddAssign<Decimal> for Usd
impl AddAssign<Decimal> for Usd
Source§fn add_assign(&mut self, other: Decimal)
fn add_assign(&mut self, other: Decimal)
Performs the
+= operation. Read moreSource§impl CandidType for Usd
impl CandidType for Usd
impl Copy for Usd
Source§impl<'de> Deserialize<'de> for Usd
impl<'de> Deserialize<'de> for Usd
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 DivAssign for Usd
impl DivAssign for Usd
Source§fn div_assign(&mut self, other: Usd)
fn div_assign(&mut self, other: Usd)
Performs the
/= operation. Read moreSource§impl DivAssign<Decimal> for Usd
impl DivAssign<Decimal> for Usd
Source§fn div_assign(&mut self, other: Decimal)
fn div_assign(&mut self, other: Decimal)
Performs the
/= operation. Read moreimpl Eq for Usd
Source§impl MulAssign for Usd
impl MulAssign for Usd
Source§fn mul_assign(&mut self, other: Usd)
fn mul_assign(&mut self, other: Usd)
Performs the
*= operation. Read moreSource§impl MulAssign<Decimal> for Usd
impl MulAssign<Decimal> for Usd
Source§fn mul_assign(&mut self, other: Decimal)
fn mul_assign(&mut self, other: Decimal)
Performs the
*= operation. Read moreSource§impl NormalizeAuto for Usd
impl NormalizeAuto for Usd
fn normalize_self(&mut self, ctx: &mut dyn VisitorContext)
Source§impl NormalizeCustom for Usd
impl NormalizeCustom for Usd
fn normalize_custom(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl NumericValue for Usd
impl NumericValue for Usd
Source§fn try_to_decimal(&self) -> Option<Decimal>
fn try_to_decimal(&self) -> Option<Decimal>
Convert this value into
Decimal for generic numeric handling.Source§fn try_from_decimal(value: Decimal) -> Option<Self>
fn try_from_decimal(value: Decimal) -> Option<Self>
Rebuild the value from
Decimal after generic numeric handling.Source§impl Ord for Usd
impl Ord for Usd
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 PartialOrd for Usd
impl PartialOrd for Usd
Source§impl PartialOrd<Decimal> for Usd
impl PartialOrd<Decimal> for Usd
Source§impl PartialOrd<Usd> for Decimal
impl PartialOrd<Usd> for Decimal
impl StructuralPartialEq for Usd
Source§impl SubAssign for Usd
impl SubAssign for Usd
Source§fn sub_assign(&mut self, other: Usd)
fn sub_assign(&mut self, other: Usd)
Performs the
-= operation. Read moreSource§impl SubAssign<Decimal> for Usd
impl SubAssign<Decimal> for Usd
Source§fn sub_assign(&mut self, other: Decimal)
fn sub_assign(&mut self, other: Decimal)
Performs the
-= operation. Read moreSource§impl ValidateAuto for Usd
impl ValidateAuto for Usd
fn validate_self(&self, _ctx: &mut dyn VisitorContext)
Source§impl ValidateCustom for Usd
impl ValidateCustom for Usd
fn validate_custom(&self, _ctx: &mut dyn VisitorContext)
Auto Trait Implementations§
impl Freeze for Usd
impl RefUnwindSafe for Usd
impl Send for Usd
impl Sync for Usd
impl Unpin for Usd
impl UnsafeUnpin for Usd
impl UnwindSafe for Usd
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Normalize for Twhere
T: NormalizeAuto + NormalizeCustom,
Source§impl<T> NormalizeAndValidate for Twhere
T: Visitable,
impl<T> NormalizeAndValidate for Twhere
T: Visitable,
Source§fn normalize_and_validate(self) -> Result<Self, VisitorError>
fn normalize_and_validate(self) -> Result<Self, VisitorError>
Normalize and then validate this application-owned value. Read more