Returns the doc state and the state vector.
(&self)
| 137 | |
| 138 | /// Returns the doc state and the state vector. |
| 139 | pub fn encode_collab(&self) -> Result<EncodedCollab, CollabError> { |
| 140 | self.collab.encode_collab_v1(|collab| { |
| 141 | CollabType::Folder |
| 142 | .validate_require_data(collab) |
| 143 | .map_err(|err| CollabError::FolderMissingRequiredData(err.to_string())) |
| 144 | }) |
| 145 | } |
| 146 | |
| 147 | /// Fetches the folder data based on the current workspace and view. |
| 148 | /// |