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

Method short_code

atomic-core/src/change/credit.rs:105–113  ·  view source on GitHub ↗

Get a short code for compact display.

(&self)

Source from the content-addressed store, hash-verified

103
104 /// Get a short code for compact display.
105 pub fn short_code(&self) -> &'static str {
106 match self {
107 CreditType::Human => "H",
108 CreditType::AiAssisted => "A",
109 CreditType::Collaborative => "C",
110 CreditType::AiGenerated => "G",
111 CreditType::Unknown => "?",
112 }
113 }
114
115 /// Check if this credit type involves AI.
116 #[inline]

Callers 1

short_attributionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected