MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / deserialize

Function deserialize

atomic-repository/src/repository/materialize.rs:2510–2515  ·  view source on GitHub ↗
(d: D)

Source from the content-addressed store, hash-verified

2508 s.serialize_str(&data_encoding::BASE64.encode(v))
2509 }
2510 pub fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> {
2511 let s = String::deserialize(d)?;
2512 data_encoding::BASE64
2513 .decode(s.as_bytes())
2514 .map_err(serde::de::Error::custom)
2515 }
2516}
2517
2518impl Repository {

Callers 15

require_dependencyFunction · 0.70
write_import_recordedMethod · 0.70
record_with_lifecycleMethod · 0.70
assemble_and_hashMethod · 0.70
import_change_bytesMethod · 0.70
save_change_bytesMethod · 0.70
import_v3_bytesMethod · 0.50
load_changeMethod · 0.50

Calls 2

decodeMethod · 0.45
as_bytesMethod · 0.45