1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
pub struct UpdateResult {
    pub op: UpdateOp,
    pub doc_id: String,
    pub path: String,
    pub value: Box<dyn std::fmt::Debug>, // we only care if we can print the value
}
pub enum UpdateOp {
    Set,
    Removed,
    ReplacedWithCounter,
    Incremented,
    Pushed,
    Popped,
    Inserted,
}