Skip to main content

declarative_source_find_field_decl

Function declarative_source_find_field_decl 

Source
pub fn declarative_source_find_field_decl<'a>(
    fields: Option<&'a Value>,
    field_id: &str,
) -> Option<&'a Value>
Expand description

Finds one form-field declaration by its field id.

§Parameters

§Returns

Returns Some when crate::declarative::declarative_source_find_field_decl can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_runtime_compiler::declarative::declarative_source_find_field_decl(todo!(), "field");