MCPcopy Create free account
hub / github.com/encounter/objdiff / get_property

Method get_property

objdiff-wasm/src/api.rs:568–572  ·  view source on GitHub ↗
(&self, key: String)

Source from the content-addressed store, hash-verified

566 }
567
568 fn get_property(&self, key: String) -> Result<String, String> {
569 let id = diff::ConfigPropertyId::from_str(&key)
570 .map_err(|_| format!("Invalid property key {:?}", key))?;
571 Ok(self.0.borrow().get_property_value(id).to_string())
572 }
573}
574
575struct CachedObject(Weak<obj::Object>, u64, diff::DiffSide);

Callers

nothing calls this directly

Calls 1

from_strFunction · 0.85

Tested by

no test coverage detected