pub fn reference_find_object_by_string_field<'a>(
root: &'a Value,
field: &str,
expected: &str,
) -> Option<&'a Value>Expand description
Finds an object by an exact string field.
§Parameters
root: Input consumed bycrate::reference::reference_find_object_by_string_field.field: Input consumed bycrate::reference::reference_find_object_by_string_field.expected: Input consumed bycrate::reference::reference_find_object_by_string_field.
§Returns
Returns Some when crate::reference::reference_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::reference::reference_find_object_by_string_field.
§Examples
ⓘ
let _result = pharos_runtime_docs::reference::reference_find_object_by_string_field(std::path::Path::new("."), "field", "value");§Related
crate::referencefor adjacent helpers that share the same runtime surface.