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

Method cost_display

atomic-core/src/change/attestation.rs:684–690  ·  view source on GitHub ↗

Human-readable display of cost.

(&self)

Source from the content-addressed store, hash-verified

682
683 /// Human-readable display of cost.
684 pub fn cost_display(&self) -> String {
685 if self.cost_usd < 0.01 {
686 format!("${:.4}", self.cost_usd)
687 } else {
688 format!("${:.2}", self.cost_usd)
689 }
690 }
691}
692
693impl fmt::Display for Attestation {

Callers 1

push_changes_implFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected