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