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

Function deserialize

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

Source from the content-addressed store, hash-verified

2491 s.serialize_str(&data_encoding::BASE64.encode(v))
2492 }
2493 pub fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> {
2494 let s = String::deserialize(d)?;
2495 data_encoding::BASE64
2496 .decode(s.as_bytes())
2497 .map_err(serde::de::Error::custom)
2498 }
2499}
2500
2501impl 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