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

Method get_default

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

Get the default identity ID.

(&self)

Source from the content-addressed store, hash-verified

93
94 /// Get the default identity ID.
95 pub fn get_default(&self) -> Option<IdentityId> {
96 self.default_identity
97 .as_ref()
98 .and_then(|s| IdentityId::from_base32(s).ok())
99 }
100
101 /// Get the default identity ID for a specific usage.
102 pub fn get_default_for_usage(&self, usage: &IdentityUsage) -> Option<IdentityId> {

Callers 10

build_client_with_orgFunction · 0.45
resolve_authorMethod · 0.45
runMethod · 0.45
runMethod · 0.45
executeMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
get_default_for_usageMethod · 0.45

Calls 2

as_refMethod · 0.80
loadMethod · 0.45

Tested by 1