Skip to main content

upsert_agreement

Function upsert_agreement 

Source
pub fn upsert_agreement(a: Agreement) -> Result<(), String>
Expand description

Insert-or-update a (keyed by Agreement::id), then persist the store.

If an agreement with the same id already exists it is replaced in place (preserving its position); otherwise a is appended.