MCPcopy Create free account
hub / github.com/Recordscript/recordscript / load

Function load

src-tauri/src/configuration.rs:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39fn load<D>() -> anyhow::Result<D>
40where
41 D: DeserializeOwned,
42{
43 let data = std::fs::read(config_path::<D>())?;
44 let data: D = bincode::deserialize(&data)?;
45
46 Ok(data)
47}
48
49#[derive(Debug, Clone, Serialize, Deserialize)]
50pub struct SavePathConfig {

Callers 7

get_available_configFunction · 0.85
preferenceMethod · 0.85
get_configFunction · 0.85
peersMethod · 0.85
clear_ramMethod · 0.85
clear_vramMethod · 0.85
readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected