pub struct ProjectRepository { /* private fields */ }
Expand description
Repository for project data access operations
Implementations§
Source§impl ProjectRepository
impl ProjectRepository
Sourcepub fn new(fs_manager: FileSystemManager) -> Self
pub fn new(fs_manager: FileSystemManager) -> Self
Create a new ProjectRepository instance
Sourcepub fn with_cache(
fs_manager: FileSystemManager,
cache: ProjectManagerCache,
) -> Self
pub fn with_cache( fs_manager: FileSystemManager, cache: ProjectManagerCache, ) -> Self
Create a new ProjectRepository instance with shared cache
Sourcepub async fn create_project(&self, project: Project) -> Result<()>
pub async fn create_project(&self, project: Project) -> Result<()>
Create a new project
Sourcepub async fn load_project(&self, project_name: &str) -> Result<Project>
pub async fn load_project(&self, project_name: &str) -> Result<Project>
Load a project from the file system
Sourcepub async fn project_exists(&self, project_name: &str) -> bool
pub async fn project_exists(&self, project_name: &str) -> bool
Check if a project exists
Sourcepub async fn list_projects(&self) -> Result<Vec<Project>>
pub async fn list_projects(&self) -> Result<Vec<Project>>
List all projects
Trait Implementations§
Source§impl Clone for ProjectRepository
impl Clone for ProjectRepository
Source§fn clone(&self) -> ProjectRepository
fn clone(&self) -> ProjectRepository
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProjectRepository
impl !RefUnwindSafe for ProjectRepository
impl Send for ProjectRepository
impl Sync for ProjectRepository
impl Unpin for ProjectRepository
impl !UnwindSafe for ProjectRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more