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

Method short_code

atomic-identity/src/usage.rs:90–98  ·  view source on GitHub ↗

Get a short code for compact display.

(&self)

Source from the content-addressed store, hash-verified

88
89 /// Get a short code for compact display.
90 pub fn short_code(&self) -> &str {
91 match self {
92 IdentityUsage::Personal => "P",
93 IdentityUsage::Work => "W",
94 IdentityUsage::Community => "C",
95 IdentityUsage::Bot => "B",
96 IdentityUsage::Custom(_) => "X",
97 }
98 }
99
100 /// Check if this is a personal identity.
101 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected