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

Method fmt

atomic-core/src/change/provenance/mod.rs:617–635  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

615
616impl fmt::Display for Provenance {
617 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
618 write!(f, "{}", self.summary())?;
619 if let Some(ref mode) = self.agent_mode {
620 write!(f, " [{}]", mode)?;
621 }
622 if self.has_tokens() {
623 write!(f, " - {}", self.tokens)?;
624 }
625 if self.has_cost() {
626 write!(f, " - {}", self.cost)?;
627 }
628 if let Some(steps) = self.step_count {
629 write!(f, " ({} steps)", steps)?;
630 }
631 if self.reasoning_signature.is_some() {
632 write!(f, " ✓signed")?;
633 }
634 Ok(())
635 }
636}

Callers

nothing calls this directly

Calls 2

has_tokensMethod · 0.80
has_costMethod · 0.80

Tested by

no test coverage detected