pub struct ProjectManager { /* private fields */ }
Expand description
Project manager for Bevy AI projects
Implementations§
Source§impl ProjectManager
impl ProjectManager
Sourcepub fn new<P: AsRef<Path>>(project_path: P) -> Self
pub fn new<P: AsRef<Path>>(project_path: P) -> Self
Create a new project manager for the given path
Sourcepub async fn init(&mut self, name: &str, description: &str) -> Result<()>
pub async fn init(&mut self, name: &str, description: &str) -> Result<()>
Initialize a new Bevy AI project
Sourcepub async fn save_config(&self, config: &ProjectConfig) -> Result<()>
pub async fn save_config(&self, config: &ProjectConfig) -> Result<()>
Save project configuration
Sourcepub fn config(&self) -> Option<&ProjectConfig>
pub fn config(&self) -> Option<&ProjectConfig>
Get project configuration
Sourcepub fn config_mut(&mut self) -> Option<&mut ProjectConfig>
pub fn config_mut(&mut self) -> Option<&mut ProjectConfig>
Get mutable project configuration
Sourcepub async fn add_conversation(&mut self, entry: ConversationEntry) -> Result<()>
pub async fn add_conversation(&mut self, entry: ConversationEntry) -> Result<()>
Add a conversation entry
Sourcepub async fn add_generated_file(&mut self, file: GeneratedFile) -> Result<()>
pub async fn add_generated_file(&mut self, file: GeneratedFile) -> Result<()>
Add a generated file entry
Sourcepub async fn add_dependency(&mut self, dependency: Dependency) -> Result<()>
pub async fn add_dependency(&mut self, dependency: Dependency) -> Result<()>
Add a dependency
Sourcepub async fn analyze_dependencies(&self) -> Result<Vec<DependencyInfo>>
pub async fn analyze_dependencies(&self) -> Result<Vec<DependencyInfo>>
Analyze existing code for dependencies
Sourcepub async fn stats(&self) -> Result<ProjectStats>
pub async fn stats(&self) -> Result<ProjectStats>
Get project statistics
Auto Trait Implementations§
impl Freeze for ProjectManager
impl RefUnwindSafe for ProjectManager
impl Send for ProjectManager
impl Sync for ProjectManager
impl Unpin for ProjectManager
impl UnwindSafe for ProjectManager
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