MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_default_for_usage

Method get_default_for_usage

atomic-identity/src/store.rs:102–106  ·  view source on GitHub ↗

Get the default identity ID for a specific usage.

(&self, usage: &IdentityUsage)

Source from the content-addressed store, hash-verified

100
101 /// Get the default identity ID for a specific usage.
102 pub fn get_default_for_usage(&self, usage: &IdentityUsage) -> Option<IdentityId> {
103 self.default_by_usage
104 .get(&usage.to_string())
105 .and_then(|s| IdentityId::from_base32(s).ok())
106 }
107}
108
109/// Stored identity data (without secret key).

Callers 3

resolve_authorMethod · 0.80
runMethod · 0.80

Calls 3

getMethod · 0.65
loadMethod · 0.45
get_defaultMethod · 0.45

Tested by 1