pub fn declarative_source_find_object_by_string_field<'a>(
array_value: &'a Value,
field_name: &str,
expected_value: &str,
) -> Option<&'a Value>Expand description
Finds the first object in an array whose named field equals the expected string.
§Parameters
array_value: Input consumed bycrate::declarative::declarative_source_find_object_by_string_field.field_name: Input consumed bycrate::declarative::declarative_source_find_object_by_string_field.expected_value: Input consumed bycrate::declarative::declarative_source_find_object_by_string_field.
§Returns
Returns Some when crate::declarative::declarative_source_find_object_by_string_field can produce a value and None otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::declarative::declarative_source_find_object_by_string_field.
§Examples
ⓘ
let _result = pharos_runtime_compiler::declarative::declarative_source_find_object_by_string_field(todo!(), todo!(), todo!());§Related
crate::declarativefor adjacent helpers that share the same runtime surface.