Skip to main content

find_in_array

Function find_in_array 

Source
pub fn find_in_array<'a>(
    array: &'a [Value],
    field: &str,
    value: &str,
) -> Option<&'a Value>
Expand description

Find item in config array by field value

§Arguments

  • array - Array of configuration items
  • field - Field name to search
  • value - Value to match

§Returns

Reference to matching item, or None if not found