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

Method from_identity

atomic-identity/src/identity.rs:573–579  ·  view source on GitHub ↗

Create an author from an identity.

(identity: &Identity)

Source from the content-addressed store, hash-verified

571
572 /// Create an author from an identity.
573 pub fn from_identity(identity: &Identity) -> Self {
574 Self {
575 name: identity.name.clone(),
576 email: identity.email.clone(),
577 identity: Some(identity.public_key_base32()),
578 }
579 }
580}
581
582impl fmt::Display for Author {

Callers

nothing calls this directly

Calls 2

public_key_base32Method · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected