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

Function default_folder_data

collab/src/folder/folder.rs:1670–1691  ·  view source on GitHub ↗
(uid: i64, workspace_id: &str)

Source from the content-addressed store, hash-verified

1668}
1669
1670pub fn default_folder_data(uid: i64, workspace_id: &str) -> FolderData {
1671 let workspace = Workspace {
1672 id: Uuid::parse_str(workspace_id)
1673 .unwrap_or_else(|_| crate::entity::uuid_validation::generate_workspace_id()),
1674 name: "".to_string(),
1675 child_views: Default::default(),
1676 created_at: 0,
1677 created_by: None,
1678 last_edited_time: 0,
1679 last_edited_by: None,
1680 };
1681 FolderData {
1682 uid,
1683 workspace,
1684 current_view: None,
1685 views: vec![],
1686 favorites: HashMap::new(),
1687 recent: HashMap::new(),
1688 trash: HashMap::new(),
1689 private: HashMap::new(),
1690 }
1691}
1692
1693#[cfg(test)]
1694mod tests {

Callers 2

import_level_testFunction · 0.85

Calls 1

generate_workspace_idFunction · 0.85

Tested by 1

import_level_testFunction · 0.68