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

Method clear_default

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

Clear the default identity.

(&mut self)

Source from the content-addressed store, hash-verified

710
711 /// Clear the default identity.
712 pub fn clear_default(&mut self) -> Result<(), IdentityError> {
713 self.config.default_identity = None;
714 self.save_config()
715 }
716
717 /// Get the number of identities in the store.
718 pub fn count(&self) -> Result<usize, IdentityError> {

Callers 1

runMethod · 0.80

Calls 1

save_configMethod · 0.80

Tested by

no test coverage detected