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

Method store_

libs/hbb_common/src/config.rs:505–510  ·  view source on GitHub ↗
(config: &T, suffix: &str)

Source from the content-addressed store, hash-verified

503 }
504
505 fn store_<T: serde::Serialize>(config: &T, suffix: &str) {
506 let file = Self::file_(suffix);
507 if let Err(err) = store_path(file, config) {
508 log::error!("Failed to store {suffix} config: {err}");
509 }
510 }
511
512 fn load() -> Config {
513 let mut config = Config::load_::<Config>("");

Callers

nothing calls this directly

Calls 1

store_pathFunction · 0.85

Tested by

no test coverage detected