Skip to main content

rehome

Function rehome 

pub fn rehome(
    source: &AutoCommit,
    origin: &Origin,
    from_room: &str,
    to_room: &str,
    target: &RecordId,
) -> Result<AutoCommit, TransferError>
Expand description

The destination’s copy of source, read from origin in from_room: its whole history, one more change giving it target’s id and to_room’s scope, and a record’s origin id kept as provenance. source is not changed.

§Errors

A source that is not origin’s live document, or a transfer into the room it is already in.