MCPcopy Create free account
hub / github.com/chridou/http-api-problem / json_bytes

Method json_bytes

src/lib.rs:387–389  ·  view source on GitHub ↗

Serialize to a JSON `Vec `

(&self)

Source from the content-addressed store, hash-verified

385
386 /// Serialize to a JSON `Vec<u8>`
387 pub fn json_bytes(&self) -> Vec<u8> {
388 serde_json::to_vec(self).unwrap()
389 }
390
391 /// Serialize to a JSON `String`
392 pub fn json_string(&self) -> String {

Callers 3

error_responseMethod · 0.80
to_hyper_responseMethod · 0.80
to_actix_responseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected