MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / fmt

Method fmt

1e_http_client/rust/http_client/src/person.rs:38–48  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

36
37impl std::fmt::Display for Data {
38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39 let p = &self.person.personal;
40 write!(
41 f,
42 "Person: {} {}, {}, {}",
43 p["name"].as_str().unwrap(),
44 p["last_name"].as_str().unwrap(),
45 p["age"],
46 p["country"].as_str().unwrap(),
47 )
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected