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

Method contains

core/station/impl/src/models/metadata.rs:45–50  ·  view source on GitHub ↗
(&self, item: &MetadataItem)

Source from the content-addressed store, hash-verified

43 }
44
45 pub fn contains(&self, item: &MetadataItem) -> bool {
46 self.metadata
47 .get(&item.key)
48 .map(|v| *v == item.value)
49 .unwrap_or_default()
50 }
51
52 pub fn map(&self) -> HashMap<String, String> {
53 self.metadata

Calls 2

mapMethod · 0.80
getMethod · 0.45

Tested by 3

is_matchMethod · 0.64
compare_arraysFunction · 0.64