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

Method get_block_data

collab/src/document/document.rs:216–220  ·  view source on GitHub ↗
(&self, block_id: &str)

Source from the content-addressed store, hash-verified

214 }
215
216 pub fn get_block_data(&self, block_id: &str) -> Option<(BlockType, HashMap<String, Value>)> {
217 let block = self.get_block(block_id)?;
218 let block_type = BlockType::from_block_ty(&block.ty);
219 Some((block_type, block.data))
220 }
221
222 /// Get the children of the block with the given id.
223 pub fn get_block_children_ids(&self, block_id: &str) -> Vec<String> {

Calls 1

get_blockMethod · 0.45