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

Method to_author

atomic-identity/src/identity.rs:393–399  ·  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

391 /// This creates an Author struct compatible with atomic-core's
392 /// change header format.
393 pub fn to_author(&self) -> crate::Author {
394 crate::Author {
395 name: self.name.clone(),
396 email: self.email.clone(),
397 identity: Some(self.public_key_base32()),
398 }
399 }
400}
401
402impl 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