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

Method make_serializable

ciphercore-base/src/graphs.rs:1307–1321  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1305/// Methods which aren't supposed to be imported in Python.
1306impl Node {
1307 fn make_serializable(&self) -> SerializableNode {
1308 Arc::new(SerializableNodeBody {
1309 node_dependencies: self
1310 .get_node_dependencies()
1311 .iter()
1312 .map(|n| n.get_id())
1313 .collect(),
1314 graph_dependencies: self
1315 .get_graph_dependencies()
1316 .iter()
1317 .map(|n| n.get_id())
1318 .collect(),
1319 operation: self.get_operation(),
1320 })
1321 }
1322
1323 fn downgrade(&self) -> WeakNode {
1324 WeakNode {

Callers 1

to_versioned_dataMethod · 0.80

Calls 11

serialize_hashmapFunction · 0.85
get_node_dependenciesMethod · 0.80
is_finalizedMethod · 0.80
cloneMethod · 0.80
get_idMethod · 0.45
get_operationMethod · 0.45
get_output_nodeMethod · 0.45
get_nodesMethod · 0.45
get_main_graphMethod · 0.45
get_graphsMethod · 0.45

Tested by

no test coverage detected