MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / deserialize

Function deserialize

crates/client-api/src/util/serde.rs:13–17  ·  view source on GitHub ↗
(de: D)

Source from the content-addressed store, hash-verified

11 }
12
13 pub fn deserialize<'de, D: Deserializer<'de>>(de: D) -> Result<Duration, D::Error> {
14 // TODO: `toml` chokes if we try to derserialize to `&str` here.
15 let s = String::deserialize(de)?;
16 humantime::parse_duration(&s).map_err(serde::de::Error::custom)
17 }
18}

Callers 15

deserializeMethod · 0.50
visit_mapMethod · 0.50
deserializeMethod · 0.50
de_nz_usizeFunction · 0.50
de_nz_u64Function · 0.50
de_nz_durationFunction · 0.50
de_fractionFunction · 0.50
de_limit_mbFunction · 0.50
from_return_dataMethod · 0.50
reformat_update_v1Function · 0.50
reformat_bsatn_rowsFunction · 0.50

Calls 1

parse_durationFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…