Skip to main content

snapshot_vault

Function snapshot_vault 

Source
pub fn snapshot_vault(
    conn: &Connection,
) -> Result<(Option<String>, Option<Value>), String>
Expand description

The stored version and the document, read as one snapshot (None for an empty vault).

GET /api/vault read the document and then the version as two statements; a save landing between them paired the document with a newer token.