MCPcopy Create free account
hub / github.com/PerroEngine/Perro / save_string

Function save_string

perro_source/api_modules/perro_web/src/storage.rs:31–33  ·  view source on GitHub ↗
(scope: StorageScope, key: &str, text: &str)

Source from the content-addressed store, hash-verified

29}
30
31pub fn save_string(scope: StorageScope, key: &str, text: &str) -> io::Result<()> {
32 save_bytes(scope, key, text.as_bytes())
33}
34
35pub fn load_local_bytes(key: &str) -> io::Result<Option<Vec<u8>>> {
36 load_bytes(StorageScope::Local, key)

Callers 9

save_all_scenesFunction · 0.50
create_quick_assetFunction · 0.50
save_recent_projectsFunction · 0.50

Calls 2

save_bytesFunction · 0.70
as_bytesMethod · 0.45

Tested by

no test coverage detected