fn save_account(&mut self, account_id: &Hash, account: &Account) -> bool {
        if self.accounts.insert(account_id, account).is_none() {
            // new account was added
            self.accounts_len += 1;
            return true;
        }
        false
    }
/// returns true if this was a new account
returns true if this was a new account
returns true if this was a new account
fn save_account(&mut self, account_id: &Hash, account: &Account) -> bool {
        if self.accounts.insert(account_id, account).is_none() {
            // new account was added
            self.accounts_len += 1;
            return true;
        }
        false
    }
fn save_account ( & mut self , account_id : & Hash , account : & Account ) -> bool { if self . accounts . insert ( account_id , account ) . is_none ( ) { // new account was added self . accounts_len += 1 ; return true ; } false }
returns true if this was a new account
returns true if this was a new account
&mut self
account_id
&Hash
account
&Account