Struct blockchain::wallet::Wallet
source · pub struct Wallet {
pub email: String,
pub address: String,
pub balance: f64,
pub transactions: Vec<String>,
}Expand description
A wallet that holds a balance of a cryptocurrency.
Fields§
§email: StringUnique email address associated with the wallet.
address: StringAddress uniquely identifying the wallet.
balance: f64The current balance of the wallet.
transactions: Vec<String>A history of transactions associated with the wallet.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Wallet
impl<'de> Deserialize<'de> for Wallet
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
Auto Trait Implementations§
impl Freeze for Wallet
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnwindSafe for Wallet
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)