pub struct Coin {
pub denom: String,
pub amount: String,
}Expand description
A Cosmos coin amount: a denom plus an integer base amount (as a string).
Fields§
§denom: StringThe coin denomination (e.g. "uqor").
amount: StringThe integer base amount, as a decimal string (e.g. "1000").
Trait Implementations§
impl Eq for Coin
impl StructuralPartialEq for Coin
Auto Trait Implementations§
impl Freeze for Coin
impl RefUnwindSafe for Coin
impl Send for Coin
impl Sync for Coin
impl Unpin for Coin
impl UnsafeUnpin for Coin
impl UnwindSafe for Coin
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