Skip to main content

list_records

Function list_records 

Source
pub async fn list_records(
    client: &Client,
    endpoint: &str,
    operator_did: &str,
    collection: &str,
) -> Result<HashMap<String, Value>, PollError>
Expand description

Page through operator_did’s collection at endpoint to completion, returning every record found keyed by at-uri.

Err on the first failure of any kind – an unreachable endpoint, a malformed page – deliberately with no partial result: a caller reading two collections as one revision relies on that to apply neither when either fails. Takes an already resolved endpoint, so one resolution of the operator’s document serves every listing a tick makes.