systemprompt_models/content/
ingestion.rs

1#[derive(Debug, Clone, Default)]
2pub struct IngestionReport {
3    pub files_found: usize,
4    pub files_processed: usize,
5    pub errors: Vec<String>,
6}
7
8impl IngestionReport {
9    pub fn new() -> Self {
10        Self::default()
11    }
12
13    pub fn has_errors(&self) -> bool {
14        !self.errors.is_empty()
15    }
16
17    pub fn successful_count(&self) -> usize {
18        self.files_processed.saturating_sub(self.errors.len())
19    }
20
21    pub fn failed_count(&self) -> usize {
22        self.errors.len()
23    }
24}