pub fn payload( raw: RawDoc, upserts: impl IntoIterator<Item = PayloadUpsert>, ) -> Result<RawDoc, PayloadError>
Change (update or insert) a key in a Payload of the document, using the provided updates.
Payload
updates
This fails if one of the PayloadIds does not point to a JSON object as its value.
PayloadId