pub struct AccountSystem {
pub account_last_id: u64,
pub account_currencies_last_id: u64,
pub account_currency_histories_last_id: u64,
pub account_crypto_currencies_last_id: u64,
pub account_crypto_currency_histories_last_id: u64,
pub storage_system: Arc<StorageSystem>,
pub asset_system: Arc<AssetSystem>,
}Fields§
§account_last_id: u64§account_currencies_last_id: u64§account_currency_histories_last_id: u64§account_crypto_currencies_last_id: u64§account_crypto_currency_histories_last_id: u64§storage_system: Arc<StorageSystem>§asset_system: Arc<AssetSystem>Implementations§
Source§impl AccountSystem
impl AccountSystem
pub fn new( storage_system: Arc<StorageSystem>, asset_system: Arc<AssetSystem>, ) -> AccountSystem
pub fn create_account(&mut self, account: Account) -> u64
pub fn create_account_currency( &mut self, account_id: u64, currency_id: u64, ) -> u64
pub fn add_currency_to_account( &mut self, account_id: u64, currency_id: u64, balance: f64, )
pub fn add_account_currency_history( &mut self, account_id: u64, account_currency_id: u64, currency_id: u64, balance: f64, )
pub fn create_account_crypto_currency( &mut self, account_id: u64, crypto_currency_id: u64, ) -> u64
pub fn add_crypto_currency_to_account( &mut self, account_id: u64, crypto_curreny_id: u64, quantity: f64, )
pub fn add_account_crypto_currency_history( &mut self, account_id: u64, crypto_currency_id: u64, quantity: f64, )
Auto Trait Implementations§
impl Freeze for AccountSystem
impl !RefUnwindSafe for AccountSystem
impl Send for AccountSystem
impl Sync for AccountSystem
impl Unpin for AccountSystem
impl !UnwindSafe for AccountSystem
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