MCPcopy Create free account
hub / github.com/dfinity/orbit / list

Method list

libs/orbit-essentials/src/repository.rs:80–86  ·  view source on GitHub ↗

Returns the list of records from the repository.

(&self)

Source from the content-addressed store, hash-verified

78{
79 /// Returns the list of records from the repository.
80 fn list(&self) -> Vec<Value> {
81 let mut entries = Vec::with_capacity(self.len());
82
83 Self::with_db(|db| db.iter().for_each(|(_, entry)| entries.push(entry)));
84
85 entries
86 }
87
88 /// Returns whether a record exists in the repository.
89 fn exists(&self, key: &Key) -> bool {

Callers

nothing calls this directly

Implementers 15

asset.rscore/station/impl/src/repositories/ass
notification.rscore/station/impl/src/repositories/not
user_group.rscore/station/impl/src/repositories/use
request_evaluation_result.rscore/station/impl/src/repositories/req
request_policy.rscore/station/impl/src/repositories/req
account.rscore/station/impl/src/repositories/acc
request.rscore/station/impl/src/repositories/req
user.rscore/station/impl/src/repositories/use
address_book.rscore/station/impl/src/repositories/add
named_rule.rscore/station/impl/src/repositories/nam
transfer.rscore/station/impl/src/repositories/tra
external_canister.rscore/station/impl/src/repositories/ext

Calls 2

iterMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected