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

Method from_identity

atomic-identity/src/identity.rs:541–547  ·  view source on GitHub ↗

Create an author from an identity.

(identity: &Identity)

Source from the content-addressed store, hash-verified

539
540 /// Create an author from an identity.
541 pub fn from_identity(identity: &Identity) -> Self {
542 Self {
543 name: identity.name.clone(),
544 email: identity.email.clone(),
545 identity: Some(identity.public_key_base32()),
546 }
547 }
548}
549
550impl 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