pub fn record_get_by_account_id(&self, account_id_target: &str, snapshot_password: &str) -> storage::Id {
        // todo: rename account_id_target to just account_id
        let index = self.storage.get_index(snapshot_password);
        for (record_id, account_id) in index {
            if format!("{:?}", account_id) == account_id_target {
                return record_id;
            }
        }
        panic!("Unable to find record id with specified account id");
    }
/// Searches record id by account id
///
/// `account_id_target` the id of the account to search
///
/// `snapshot_password` password required to decrypt/encrypt the snapshot file
///
/// # Example
/// ```no_run
/// use stronghold::Stronghold;
/// let stronghold = Stronghold::new("savings.snapshot");
/// let id = stronghold.record_get_by_account_id(
///     "7c1a5ce9cc8f57f8739634aefbafda9eba6a02f82e3a4ab825ed296274e3aca1",
///     "suEu38kQmsn$eu",
/// );
/// ```
Searches record id by account id
`account_id_target` the id of the account to search

`snapshot_password` password required to decrypt/encrypt the snapshot file
Searches record id by account id ` account_id_target ` the id of the account to search ` snapshot_password ` password required to decrypt / encrypt the snapshot file
pub fn record_get_by_account_id(&self, account_id_target: &str, snapshot_password: &str) -> storage::Id {
        // todo: rename account_id_target to just account_id
        let index = self.storage.get_index(snapshot_password);
        for (record_id, account_id) in index {
            if format!("{:?}", account_id) == account_id_target {
                return record_id;
            }
        }
        panic!("Unable to find record id with specified account id");
    }
pub fn record_get_by_account_id ( & self , account_id_target : & str , snapshot_password : & str ) -> storage :: Id { // todo: rename account_id_target to just account_id let index = self . storage . get_index ( snapshot_password ) ; for ( record_id , account_id ) in index { if format ! ( " " account_id ) == account_id_target { return record_id ; } } panic ! ( " " ) ; }
Searches record id by account id
`account_id_target` the id of the account to search
Searches record id by account id ` account_id_target ` the id of the account to search
&self
account_id_target
&str
snapshot_password
&str
example
None