payload

Function payload 

Source
pub fn payload(
    raw: RawDoc,
    payload: Vec<(PayloadId, String, Value)>,
) -> Result<RawDoc, PayloadError>
Expand description

Change the payload of the document, using the set of triples:

ยงErrors

This fails if one of the PayloadIds does not point to a JSON object as its value.