MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / yaml_field

Function yaml_field

packages/server/src/main/maestro.rs:389–391  ·  view source on GitHub ↗
(value: &'a YamlValue, field: &str)

Source from the content-addressed store, hash-verified

387}
388
389fn yaml_field<'a>(value: &'a YamlValue, field: &str) -> Option<&'a YamlValue> {
390 value.as_mapping()?.get(YamlValue::String(field.to_owned()))
391}
392
393fn yaml_string_or_field(value: &YamlValue, field: &str) -> Option<String> {
394 value.as_str().map(str::to_owned).or_else(|| {

Callers 4

run_maestro_commandFunction · 0.85
maestro_tap_bodyFunction · 0.85
yaml_string_or_fieldFunction · 0.85
yaml_u64_or_fieldFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected