(
&self,
txn: &mut TransactionMut,
path: P,
value: V,
)
| 93 | } |
| 94 | |
| 95 | fn insert_json_with_path<P, V>( |
| 96 | &self, |
| 97 | txn: &mut TransactionMut, |
| 98 | path: P, |
| 99 | value: V, |
| 100 | ) -> Result<(), CollabError> |
| 101 | where |
| 102 | P: Into<Path>, |
| 103 | V: Serialize, |
| 104 | { |
| 105 | let value = serde_json::to_value(value)?; |
| 106 | self.insert_with_path(txn, path, Entity::from(value))?; |
| 107 | Ok(()) |
| 108 | } |
| 109 | |
| 110 | fn get_json_with_path<T, P, V>(&self, txn: &T, path: P) -> Result<V, CollabError> |
| 111 | where |