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

Function from_json_seed

crates/cli/src/api.rs:130–138  ·  view source on GitHub ↗
(
    s: &'de str,
    seed: T,
)

Source from the content-addressed store, hash-verified

128}
129
130pub fn from_json_seed<'de, T: serde::de::DeserializeSeed<'de>>(
131 s: &'de str,
132 seed: T,
133) -> Result<T::Value, serde_json::Error> {
134 let mut de = serde_json::Deserializer::from_str(s);
135 let out = seed.deserialize(&mut de)?;
136 de.end()?;
137 Ok(out)
138}

Callers 1

stmt_result_to_tableFunction · 0.50

Calls 4

from_strFunction · 0.85
OkFunction · 0.50
deserializeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…