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

Method set_default_for_usage

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

Set the default identity for a specific usage.

(&mut self, usage: &IdentityUsage, identity_id: &IdentityId)

Source from the content-addressed store, hash-verified

87
88 /// Set the default identity for a specific usage.
89 pub fn set_default_for_usage(&mut self, usage: &IdentityUsage, identity_id: &IdentityId) {
90 self.default_by_usage
91 .insert(usage.to_string(), identity_id.to_base32());
92 }
93
94 /// Get the default identity ID.
95 pub fn get_default(&self) -> Option<IdentityId> {

Callers 3

runMethod · 0.80
runMethod · 0.80

Calls 4

save_configMethod · 0.80
insertMethod · 0.45
to_base32Method · 0.45
loadMethod · 0.45

Tested by 1