pub struct NormalizedMonetaryAmount {
pub units: u64,
pub currency: String,
}Expand description
Proof-facing monetary cap.
Fields§
§units: u64§currency: StringTrait Implementations§
Source§impl Clone for NormalizedMonetaryAmount
impl Clone for NormalizedMonetaryAmount
Source§fn clone(&self) -> NormalizedMonetaryAmount
fn clone(&self) -> NormalizedMonetaryAmount
Returns a duplicate 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 NormalizedMonetaryAmount
impl Debug for NormalizedMonetaryAmount
Source§impl<'de> Deserialize<'de> for NormalizedMonetaryAmount
impl<'de> Deserialize<'de> for NormalizedMonetaryAmount
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 From<&MonetaryAmount> for NormalizedMonetaryAmount
impl From<&MonetaryAmount> for NormalizedMonetaryAmount
Source§fn from(amount: &MonetaryAmount) -> Self
fn from(amount: &MonetaryAmount) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NormalizedMonetaryAmount
impl PartialEq for NormalizedMonetaryAmount
Source§impl Serialize for NormalizedMonetaryAmount
impl Serialize for NormalizedMonetaryAmount
impl Eq for NormalizedMonetaryAmount
impl StructuralPartialEq for NormalizedMonetaryAmount
Auto Trait Implementations§
impl Freeze for NormalizedMonetaryAmount
impl RefUnwindSafe for NormalizedMonetaryAmount
impl Send for NormalizedMonetaryAmount
impl Sync for NormalizedMonetaryAmount
impl Unpin for NormalizedMonetaryAmount
impl UnsafeUnpin for NormalizedMonetaryAmount
impl UnwindSafe for NormalizedMonetaryAmount
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