Create an author with an identity reference.
(
name: impl Into<String>,
email: Option<impl Into<String>>,
identity: impl Into<String>,
)
| 558 | |
| 559 | /// Create an author with an identity reference. |
| 560 | pub fn with_identity( |
| 561 | name: impl Into<String>, |
| 562 | email: Option<impl Into<String>>, |
| 563 | identity: impl Into<String>, |
| 564 | ) -> Self { |
| 565 | Self { |
| 566 | name: name.into(), |
| 567 | email: email.map(Into::into), |
| 568 | identity: Some(identity.into()), |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | /// Create an author from an identity. |
| 573 | pub fn from_identity(identity: &Identity) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected