MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / to_line

Method to_line

src/daemon.rs:239–241  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

237 }
238
239 pub fn to_line(&self) -> Result<String> {
240 Ok(serde_json::to_string(self)?)
241 }
242
243 pub fn from_line(line: &str) -> Result<Self> {
244 Ok(serde_json::from_str(line.trim())?)

Calls

no outgoing calls