MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / get

Method get

nodedb/src/control/security/scope/store.rs:167–170  ·  view source on GitHub ↗

Get a scope definition.

(&self, name: &str)

Source from the content-addressed store, hash-verified

165
166 /// Get a scope definition.
167 pub fn get(&self, name: &str) -> Option<ScopeDefinition> {
168 let scopes = self.scopes.read().unwrap_or_else(|p| p.into_inner());
169 scopes.get(name).cloned()
170 }
171
172 /// Resolve a scope to its full set of `(permission, collection)` grants.
173 ///

Callers 4

resolve_recursiveMethod · 0.45
define_and_getFunction · 0.45
scope_statusMethod · 0.45
scope_expires_atMethod · 0.45

Calls 1

readMethod · 0.45

Tested by 1

define_and_getFunction · 0.36