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

Method display_short

atomic-identity/src/identity.rs:350–355  ·  view source on GitHub ↗

Get a short display string.

(&self)

Source from the content-addressed store, hash-verified

348
349 /// Get a short display string.
350 pub fn display_short(&self) -> String {
351 match &self.email {
352 Some(email) => format!("{} <{}>", self.name, email),
353 None => self.name.clone(),
354 }
355 }
356
357 /// Convert this identity to an Author for change headers.
358 ///

Callers 1

Calls 1

cloneMethod · 0.45

Tested by 1