pub struct Account {
pub account_id: Option<Uuid>,
pub name: String,
pub status: AccountStatus,
pub balance: i64,
}
Fields§
§account_id: Option<Uuid>
§name: String
§status: AccountStatus
§balance: i64
Trait Implementations§
source§impl CommandExecutor<OpenAccount> for Account
impl CommandExecutor<OpenAccount> for Account
fn execute( cmd: OpenAccount, state: &Self ) -> Result<Vec<AccountOpened>, CommandExecutorError>
source§impl EventApplier<AccountOpened> for Account
impl EventApplier<AccountOpened> for Account
fn apply(&mut self, event: &AccountOpened) -> Result<(), ApplyError>
Auto Trait Implementations§
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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