pub struct AssetSystem {
pub last_currency_id: u64,
pub last_crypto_currency_id: u64,
pub storage_system: Arc<StorageSystem>,
}Fields§
§last_currency_id: u64§last_crypto_currency_id: u64§storage_system: Arc<StorageSystem>Implementations§
Source§impl AssetSystem
impl AssetSystem
pub fn new(storage_system: Arc<StorageSystem>) -> AssetSystem
pub fn create_currency(&mut self, currency: Currency) -> u64
pub fn create_crypto_currency(&mut self, crypto_currency: CryptoCurrency) -> u64
pub fn get_currencies(&self) -> Vec<Currency>
pub fn get_crypto_currencies(&self) -> Vec<CryptoCurrency>
Auto Trait Implementations§
impl Freeze for AssetSystem
impl !RefUnwindSafe for AssetSystem
impl Send for AssetSystem
impl Sync for AssetSystem
impl Unpin for AssetSystem
impl !UnwindSafe for AssetSystem
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