pub struct Amount {
pub to_addr: String,
pub amount: u64,
}
Expand description
The field of to_addr is the name of a account for example Lucy The field of to_amount is the value of a account for 10000. Do not write 10_000 because of deserialized mechanism used in the program.
Fields§
§to_addr: String
§amount: u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Amount
impl RefUnwindSafe for Amount
impl Send for Amount
impl Sync for Amount
impl Unpin for Amount
impl UnwindSafe for Amount
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