serializes the collection
(&self)
| 335 | |
| 336 | /// serializes the collection |
| 337 | pub fn serialize(&self) -> Result<Vec<u8>, WaCustomError> { |
| 338 | to_vec(&self.meta).map_err(|e| WaCustomError::SerializationError(e.to_string())) |
| 339 | } |
| 340 | |
| 341 | /// persists the collection instance on disk (lmdb -> collections database) |
| 342 | pub fn persist(&self, env: &Environment, db: Database) -> Result<(), WaCustomError> { |