type UpdateResult = Result<Snapshot, Snapshot>;
enum UpdateResult { Ok(Snapshot), Err(Snapshot), }
Contains the success value
Contains the error value