pub fn snapshot_options_from_json(
value: Option<Value>,
) -> Result<SnapshotOptions>Expand description
Build snapshot save options from the JSON shape used by the language bindings.
Supported shape:
{ compression?: "none" | "gzip" | { format: "gzip", level?: number }, encryption?: { type: "password", keyId?: string, password: string, params?: { memoryCostKib?: number, timeCost?: number, parallelism?: number } } }
encryption may also be a raw 32-byte key object with
{ type: "key", keyId?: string, key: number[] }.