Skip to main content

to_fields

Function to_fields 

Source
fn to_fields(
    pairs: &[(String, String)],
    inherited: &[String],
    decls: &BTreeMap<String, String>,
    notes: &mut Vec<String>,
) -> Vec<Field>
Expand description

Turns (field, value expression) pairs into fields, dropping the ones every event inherits and deciding required-ness from the Zod chain.