MCPcopy Create free account
hub / github.com/AppFlowy-IO/AppFlowy-Collab / encode_collab

Method encode_collab

collab/src/folder/folder.rs:139–145  ·  view source on GitHub ↗

Returns the doc state and the state vector.

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 4

build_imported_collabMethod · 0.45
persist_row_documentFunction · 0.45
compare_diff_view_testFunction · 0.45

Calls 2

validate_require_dataMethod · 0.80
encode_collab_v1Method · 0.45

Tested by 3

persist_row_documentFunction · 0.36
compare_diff_view_testFunction · 0.36