pub fn account_list(&self, snapshot_password: &str, skip: usize, limit: usize) -> Vec<Account> {
        let mut accounts = Vec::new();
        for (i, (record_id, _)) in self.storage.get_index(snapshot_password).into_iter().enumerate() {
            if i < skip {
                continue;
            }
            if i >= limit {
                break;
            }
            accounts.push(self.account_get_by_record_id(&record_id, snapshot_password));
        }
        accounts
    }
/// Lists accounts
///
/// Given the `snapshot password` to decrypt the snapshot, and `skip` and `limit` parameters to efficiently
/// paginate results.
///
/// `skip` is used to avoid retrieving ids from the start.
///
/// `limit` is used to avoid retrieving the entire list of ids until the end.
///
/// # Example
/// ```no_run
/// use stronghold::Stronghold;
/// let stronghold = Stronghold::new("savings.snapshot");
/// let index: Vec<String> = stronghold.account_index_get("c/7f5cf@faaf$e2c%c588d", 0, 30);
/// ```


`skip` is used to avoid retrieving ids from the start.

`limit` is used to avoid retrieving the entire list of ids until the end.
` skip ` is used to avoid retrieving ids from the start . ` limit ` is used to avoid retrieving the entire list of ids until the end .
pub fn account_list(&self, snapshot_password: &str, skip: usize, limit: usize) -> Vec<Account> {
        let mut accounts = Vec::new();
        for (i, (record_id, _)) in self.storage.get_index(snapshot_password).into_iter().enumerate() {
            if i < skip {
                continue;
            }
            if i >= limit {
                break;
            }
            accounts.push(self.account_get_by_record_id(&record_id, snapshot_password));
        }
        accounts
    }
pub fn account_list ( & self , snapshot_password : & str , skip : usize , limit : usize ) -> Vec < Account > { let mut accounts = Vec :: new ( ) ; for ( i , ( record_id , _ ) ) in self . storage . get_index ( snapshot_password ) . into_iter ( ) . enumerate ( ) { if i < skip { continue ; } if i >= limit { break ; } accounts . push ( self . account_get_by_record_id ( & record_id , snapshot_password ) ) ; } accounts }
Lists accounts
Given the `snapshot password` to decrypt the snapshot, and `skip` and `limit` parameters to efficiently
paginate results.
Lists accounts Given the ` snapshot password ` to decrypt the snapshot and ` skip ` and ` limit ` parameters to efficiently paginate results .
&self
snapshot_password
&str
skip
usize
limit
usize
example
```no_run
use stronghold::Stronghold;
let stronghold = Stronghold::new("savings.snapshot");
let index: Vec = stronghold.account_index_get("c/7f5cf@faaf$e2c%c588d", 0, 30);
```
` ` ` no_run use stronghold :: Stronghold ; let stronghold = Stronghold :: new ( " savings . snapshot " ) ; let index : Vec = stronghold . account_index_get ( " c / 7f5cf@faaf$e2c%c588d " 0 30 ) ; ` ` `