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

Method get

core/station/impl/src/services/named_rule.rs:55–64  ·  view source on GitHub ↗
(&self, named_rule_id: &NamedRuleId)

Source from the content-addressed store, hash-verified

53 }
54
55 pub fn get(&self, named_rule_id: &NamedRuleId) -> ServiceResult<NamedRule> {
56 let named_rule = self
57 .named_rule_repository
58 .get(&NamedRuleKey { id: *named_rule_id })
59 .ok_or(NamedRuleError::NotFound {
60 id: Uuid::from_bytes(*named_rule_id).hyphenated().to_string(),
61 })?;
62
63 Ok(named_rule)
64 }
65
66 pub fn list(
67 &self,

Callers 5

create_with_idMethod · 0.45
removeMethod · 0.45
editMethod · 0.45
test_getFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_getFunction · 0.36