Function validate_import
pub fn validate_import(
bytes: &[u8],
workspace: &str,
id: &RecordId,
max_bytes: usize,
) -> Result<(AutoCommit, RecordCheckout), TransferError>Expand description
Check bytes offered to become record id of workspace with their whole
history, before anything keeps them: at most max_bytes, a complete
document whose identity is exactly that freshly minted record scoped to
that workspace, live, holding no workspace index and no references to other
records, and naming earlier ids only as provenance.
ยงErrors
Bytes that are too large, malformed, or not exactly that record.