Skip to main content

pick_fields

Function pick_fields 

Source
pub fn pick_fields<'a, V>(
    keys: impl IntoIterator<Item = &'a str>,
    lookup: impl FnMut(&str) -> Option<V>,
) -> BTreeMap<String, V>
Expand description

Select existing fields without changing their values. Lookup belongs to the value adapter so records, structs, and Harness handles use one rule.