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

Method to_author

atomic-identity/src/identity.rs:361–367  ·  view source on GitHub ↗

Convert this identity to an Author for change headers. This creates an Author struct compatible with atomic-core's change header format.

(&self)

Source from the content-addressed store, hash-verified

359 /// This creates an Author struct compatible with atomic-core's
360 /// change header format.
361 pub fn to_author(&self) -> crate::Author {
362 crate::Author {
363 name: self.name.clone(),
364 email: self.email.clone(),
365 identity: Some(self.public_key_base32()),
366 }
367 }
368}
369
370impl fmt::Display for Identity {

Callers 2

test_identity_to_authorFunction · 0.80
test_identity_to_authorFunction · 0.80

Calls 2

public_key_base32Method · 0.80
cloneMethod · 0.45

Tested by 2

test_identity_to_authorFunction · 0.64
test_identity_to_authorFunction · 0.64