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

Function deserialize

atomic-repository/src/repository/remote_cache.rs:65–70  ·  view source on GitHub ↗
(d: D)

Source from the content-addressed store, hash-verified

63 }
64
65 pub fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> {
66 let s = String::deserialize(d)?;
67 BASE64
68 .decode(s.as_bytes())
69 .map_err(serde::de::Error::custom)
70 }
71}
72
73/// Schema tag for [`SandboxSkeleton::to_bytes`]: how the skeleton travels

Callers 3

hold_sandbox_changesMethod · 0.70

Calls 2

decodeMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected