Create an author from an identity.
(identity: &Identity)
| 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 | |
| 550 | impl fmt::Display for Author { |
nothing calls this directly
no test coverage detected