pub struct AssetAmount {
pub asset: CompactString,
pub amount: CompactString,
}Expand description
A resolved asset amount ready for insertion into
PaymentRequirements.
Fields§
§asset: CompactStringToken asset address / mint (wire-level string).
amount: CompactStringAmount in the token’s smallest unit, stringified.
Trait Implementations§
Source§impl Clone for AssetAmount
impl Clone for AssetAmount
Source§fn clone(&self) -> AssetAmount
fn clone(&self) -> AssetAmount
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 moreAuto Trait Implementations§
impl Freeze for AssetAmount
impl RefUnwindSafe for AssetAmount
impl Send for AssetAmount
impl Sync for AssetAmount
impl Unpin for AssetAmount
impl UnsafeUnpin for AssetAmount
impl UnwindSafe for AssetAmount
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