Skip to main content

apply

Function apply 

pub fn apply(
    state: &BTreeMap<String, Payload>,
    edit: &[u8],
) -> Result<(BTreeMap<String, Option<Payload>>, Payload)>
Expand description

The changes edit makes to state (None removes a field) and the edit’s answer. Changes nothing on a refusal.