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

Function yaml_bool_field

packages/server/src/main/maestro.rs:420–424  ·  view source on GitHub ↗
(mapping: &serde_yaml::Mapping, field: &str)

Source from the content-addressed store, hash-verified

418}
419
420fn yaml_bool_field(mapping: &serde_yaml::Mapping, field: &str) -> Option<bool> {
421 mapping
422 .get(YamlValue::String(field.to_owned()))
423 .and_then(YamlValue::as_bool)
424}

Callers 1

maestro_selectorFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected