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

Method display_short

atomic-identity/src/identity.rs:382–387  ·  view source on GitHub ↗

Get a short display string.

(&self)

Source from the content-addressed store, hash-verified

380
381 /// Get a short display string.
382 pub fn display_short(&self) -> String {
383 match &self.email {
384 Some(email) => format!("{} <{}>", self.name, email),
385 None => self.name.clone(),
386 }
387 }
388
389 /// Convert this identity to an Author for change headers.
390 ///

Callers 1

Calls 1

cloneMethod · 0.45

Tested by 1