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

Method encode_collab

collab/src/document/document.rs:129–135  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

127 }
128
129 pub fn encode_collab(&self) -> Result<EncodedCollab, CollabError> {
130 self.collab.encode_collab_v1(|collab| {
131 CollabType::Document
132 .validate_require_data(collab)
133 .map_err(|_| CollabError::DocumentMissingRequiredData)
134 })
135 }
136
137 /// open a document and subscribe to the document changes.
138 pub fn subscribe_block_changed<K, F>(&mut self, key: K, callback: F)

Callers 2

Calls 2

validate_require_dataMethod · 0.80
encode_collab_v1Method · 0.45

Tested by

no test coverage detected