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

Method is_match

core/station/impl/src/models/request_specifier.rs:237–244  ·  view source on GitHub ↗
(&self, v: (Request, UUID, ResourceIds))

Source from the content-addressed store, hash-verified

235
236impl Match<(Request, UUID, ResourceIds)> for AccountMatcher {
237 fn is_match(&self, v: (Request, UUID, ResourceIds)) -> Result<bool, MatchError> {
238 let (_, account_id, specifier) = v;
239
240 match specifier {
241 ResourceIds::Any => Ok(true),
242 ResourceIds::Ids(ids) => Ok(ids.contains(&account_id)),
243 }
244 }
245}
246
247#[derive(Clone)]

Callers 3

evaluateMethod · 0.80
find_matching_usersMethod · 0.80
evaluateMethod · 0.80

Calls 6

printFunction · 0.85
containsMethod · 0.80
iterMethod · 0.80
find_by_addressMethod · 0.80
getMethod · 0.45
get_accountMethod · 0.45

Tested by

no test coverage detected