Function from_json

Source
pub fn from_json(value: &Json) -> Result<Backup, StoreError>
Expand description

Reads back what to_json wrote.

Versions 1 through 4 are understood; other envelope shapes are refused rather than guessed at. A store inside a readable envelope is never fatal: it comes back as Part::Unreadable with what its own reader said, and the other stores remain restorable.