Fetches the folder data based on the current workspace and view. This function initiates a transaction on the root node and uses it to fetch the current workspace and view. It also fetches all workspaces and their respective views. It goes through all the workspaces and fetches the views recursively for each workspace. # Returns `Some(FolderData)`: If the operation is successful, it returns `S
(&self, workspace_id: &str, uid: Option<i64>)
| 160 | /// * `None`: If the operation is unsuccessful (though it should typically not be the case as `Some` |
| 161 | /// is returned explicitly), it returns `None`. |
| 162 | pub fn get_folder_data(&self, workspace_id: &str, uid: Option<i64>) -> Option<FolderData> { |
| 163 | let txn = self.collab.transact(); |
| 164 | self.body.get_folder_data(&txn, workspace_id, uid) |
| 165 | } |
| 166 | |
| 167 | /// Fetches the current workspace. The uid parameter is accepted for API consistency |
| 168 | /// but not used as workspace data is shared across all users. |