Skip to main content

init_scoped

Function init_scoped 

pub fn init_scoped(
    doc: &mut AutoCommit,
    id: &RecordId,
    kind: &RecordKind,
    home: &str,
    workspace: Option<&str>,
) -> bool
Expand description

Bind a record document to workspace, never rewriting an existing identity or workspace: a document stamped for another workspace would turn a matching record id into an alias across workspaces. A document naming none may be adopted once, after its identity is checked.