Skip to main content

duplicate

Function duplicate 

pub fn duplicate(
    doc: &mut AutoCommit,
    origin: &RecordCheckout,
) -> RecordCheckout
Expand description

Copy, the explicit verb: mints a new record id rather than reusing the origin’s. The new document is created empty by the caller’s next RecordSet::checkout; this returns the identity to check out.