pub struct MemoryBankStructure {
pub root_path: PathBuf,
pub workspace: WorkspaceFiles,
pub current_context: Option<PathBuf>,
pub snapshots_dir: Option<PathBuf>,
pub sub_projects_dir: Option<PathBuf>,
pub sub_projects: HashMap<String, SubProjectFiles>,
}Expand description
Memory bank directory structure representation
This structure represents the complete discovered layout of a Multi-Project Memory Bank, including all workspace-level files, sub-projects, and their associated task files. It serves as the primary data structure for navigation and file access operations.
Fields§
§root_path: PathBufRoot path of the memory bank (.copilot/memory_bank/) This is the base directory from which all other paths are resolved
workspace: WorkspaceFilesWorkspace-level files and configuration Contains shared patterns, project briefs, and workspace-wide documentation
current_context: Option<PathBuf>Current context file (current_context.md) Tracks the currently active sub-project and workspace state
snapshots_dir: Option<PathBuf>Context snapshots directory (context_snapshots/) Contains historical snapshots for restoration and analysis
sub_projects_dir: Option<PathBuf>Sub-projects directory (sub_projects/) Root directory containing all individual project folders
sub_projects: HashMap<String, SubProjectFiles>Discovered sub-projects and their complete file structures Maps sub-project names to their discovered file layouts
Trait Implementations§
Source§impl Clone for MemoryBankStructure
impl Clone for MemoryBankStructure
Source§fn clone(&self) -> MemoryBankStructure
fn clone(&self) -> MemoryBankStructure
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more