pub struct Wallet {
pub id: Uuid,
pub email: String,
pub address: String,
pub balance: f64,
pub transaction_hashes: Vec<String>,
}Expand description
A wallet that holds a balance of a cryptocurrency.
Fields§
§id: UuidUnique identifier of the wallet.
email: StringUnique email address associated with the wallet.
address: StringAddress uniquely identifying the wallet.
balance: f64The current balance of the wallet.
transaction_hashes: 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