pub struct ProjectContext {
pub project_path: PathBuf,
pub discovered_files: HashMap<String, FileInfo>,
pub architecture_insights: Vec<ArchitectureInsight>,
pub component_relationships: Vec<ComponentRelationship>,
pub exploration_history: Vec<ExplorationStep>,
pub detected_patterns: Vec<ArchitecturePattern>,
}
Expand description
项目上下文
Fields§
§project_path: PathBuf
§discovered_files: HashMap<String, FileInfo>
§architecture_insights: Vec<ArchitectureInsight>
§component_relationships: Vec<ComponentRelationship>
§exploration_history: Vec<ExplorationStep>
§detected_patterns: Vec<ArchitecturePattern>
Implementations§
Source§impl ProjectContext
impl ProjectContext
pub fn new(project_path: PathBuf) -> Self
pub fn add_file(&mut self, path: String, file_info: FileInfo)
pub fn add_insight(&mut self, insight: ArchitectureInsight)
pub fn add_relationship(&mut self, relationship: ComponentRelationship)
pub fn add_exploration_step(&mut self, step: ExplorationStep)
pub fn summarize(&self) -> String
pub fn get_file_types_summary(&self) -> HashMap<String, usize>
Trait Implementations§
Source§impl Clone for ProjectContext
impl Clone for ProjectContext
Source§fn clone(&self) -> ProjectContext
fn clone(&self) -> ProjectContext
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 ProjectContext
impl RefUnwindSafe for ProjectContext
impl Send for ProjectContext
impl Sync for ProjectContext
impl Unpin for ProjectContext
impl UnwindSafe for ProjectContext
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