pub struct SaveAccount {
pub name: String,
pub _type: AccountType,
pub balance: i64,
}Fields§
§name: StringThe name of the account
_type: AccountType§balance: i64The current balance of the account in milliunits format
Implementations§
Source§impl SaveAccount
impl SaveAccount
pub fn new(name: String, _type: AccountType, balance: i64) -> SaveAccount
Trait Implementations§
Source§impl Clone for SaveAccount
impl Clone for SaveAccount
Source§fn clone(&self) -> SaveAccount
fn clone(&self) -> SaveAccount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SaveAccount
impl Debug for SaveAccount
Source§impl<'de> Deserialize<'de> for SaveAccount
impl<'de> Deserialize<'de> for SaveAccount
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
Source§impl PartialEq for SaveAccount
impl PartialEq for SaveAccount
Source§impl Serialize for SaveAccount
impl Serialize for SaveAccount
impl StructuralPartialEq for SaveAccount
Auto Trait Implementations§
impl Freeze for SaveAccount
impl RefUnwindSafe for SaveAccount
impl Send for SaveAccount
impl Sync for SaveAccount
impl Unpin for SaveAccount
impl UnwindSafe for SaveAccount
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more