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

Method with_identity

atomic-identity/src/identity.rs:560–570  ·  view source on GitHub ↗

Create an author with an identity reference.

(
        name: impl Into<String>,
        email: Option<impl Into<String>>,
        identity: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected