Skip to main content

read_both

Function read_both 

Source
pub fn read_both<A: Schema, B: Schema>(
    v: &ValueRef<'_>,
    cx: &mut Reader<'_>,
    also: &[&'static str],
) -> Option<(A, B)>
Expand description

A and B read from the same object — each allowing the other’s fields, like serde’s flatten: a recipe’s common fields and its kind’s.