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

Method from_serializable_value

ciphercore-base/src/data_values.rs:1228–1239  ·  view source on GitHub ↗
(value: SerializableValue)

Source from the content-addressed store, hash-verified

1226 }
1227
1228 fn from_serializable_value(value: SerializableValue) -> Result<Value> {
1229 value.access(
1230 |bytes| Ok(Value::from_bytes(bytes.to_vec())),
1231 |vector| {
1232 let mut v_new = vec![];
1233 for item in vector {
1234 v_new.push(Value::from_serializable_value(item.clone())?);
1235 }
1236 Ok(Value::from_vector(v_new))
1237 },
1238 )
1239 }
1240
1241 fn to_versioned_data(&self) -> Result<VersionedData> {
1242 VersionedData::create_versioned_data(

Callers

nothing calls this directly

Calls 3

accessMethod · 0.80
cloneMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected