MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / as_object

Method as_object

claw-code/rust/crates/runtime/src/json.rs:75–80  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

73
74 #[must_use]
75 pub fn as_object(&self) -> Option<&BTreeMap<String, JsonValue>> {
76 match self {
77 Self::Object(value) => Some(value),
78 _ => None,
79 }
80 }
81
82 #[must_use]
83 pub fn as_array(&self) -> Option<&[JsonValue]> {

Callers 15

push_output_blockFunction · 0.80
read_json_objectFunction · 0.80
get_nested_valueFunction · 0.80
push_output_blockFunction · 0.80
parse_optional_modelFunction · 0.80
expect_objectFunction · 0.80
optional_string_mapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected