MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / serialize

Method serialize

ciphercore-base/src/graphs.rs:4573–4582  ·  view source on GitHub ↗
(&self, serializer: S)

Source from the content-addressed store, hash-verified

4571
4572impl Serialize for Context {
4573 fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
4574 where
4575 S: Serializer,
4576 {
4577 let versioned_context = self
4578 .to_versioned_data()
4579 .expect("Error during conversion from Context into VersionedData");
4580 //VersionedData::from(self.clone());
4581 versioned_context.serialize(serializer)
4582 }
4583}
4584
4585impl<'de> Deserialize<'de> for Context {

Callers

nothing calls this directly

Calls 1

to_versioned_dataMethod · 0.45

Tested by

no test coverage detected