Skip to main content

declarative_source_find_object_by_string_field

Function declarative_source_find_object_by_string_field 

Source
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

§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!());