pub struct ProjectOverview {
pub content: String,
pub path: PathBuf,
}Expand description
Project overview containing the generated summary.
Fields§
§content: StringThe rendered markdown content.
path: PathBufPath to the overview file (for cache invalidation info).
Implementations§
Source§impl ProjectOverview
impl ProjectOverview
Sourcepub fn load(project_root: &Path) -> Result<Option<Self>>
pub fn load(project_root: &Path) -> Result<Option<Self>>
Load the overview from the project root if it exists.
Returns None if the file doesn’t exist.
Sourcepub async fn generate_with_ai(
project_root: &Path,
provider: &dyn Provider,
) -> Result<Self>
pub async fn generate_with_ai( project_root: &Path, provider: &dyn Provider, ) -> Result<Self>
Generate and save a new overview using AI analysis. This method collects project files and sends them to the AI for analysis.
Trait Implementations§
Source§impl Clone for ProjectOverview
impl Clone for ProjectOverview
Source§fn clone(&self) -> ProjectOverview
fn clone(&self) -> ProjectOverview
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectOverview
impl RefUnwindSafe for ProjectOverview
impl Send for ProjectOverview
impl Sync for ProjectOverview
impl Unpin for ProjectOverview
impl UnsafeUnpin for ProjectOverview
impl UnwindSafe for ProjectOverview
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