pub struct WorkspaceIngestResult {
pub crates: HashMap<String, IngestResult>,
pub errors: Vec<(PathBuf, String)>,
pub crate_errors: Vec<(String, String)>,
}Expand description
Workspace-wide ingestion result.
Fields§
§crates: HashMap<String, IngestResult>Per-crate ingestion results, keyed by crate name.
errors: Vec<(PathBuf, String)>Files that failed to parse across all crates.
crate_errors: Vec<(String, String)>Crate directories that could not be opened.
Implementations§
Source§impl WorkspaceIngestResult
impl WorkspaceIngestResult
Sourcepub fn total_nodes(&self) -> usize
pub fn total_nodes(&self) -> usize
Total node count across all crates.
Sourcepub fn total_edges(&self) -> usize
pub fn total_edges(&self) -> usize
Total edge count across all crates.
Sourcepub fn total_errors(&self) -> usize
pub fn total_errors(&self) -> usize
Total parse error count.
Sourcepub fn merged_nodes_batch(&self) -> Result<RecordBatch, ArrowError>
pub fn merged_nodes_batch(&self) -> Result<RecordBatch, ArrowError>
Build a merged CodeNodes RecordBatch (all crates combined).
Sourcepub fn merged_edges_batch(&self) -> Result<RecordBatch, ArrowError>
pub fn merged_edges_batch(&self) -> Result<RecordBatch, ArrowError>
Build a merged CodeEdges RecordBatch (all crates combined).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkspaceIngestResult
impl RefUnwindSafe for WorkspaceIngestResult
impl Send for WorkspaceIngestResult
impl Sync for WorkspaceIngestResult
impl Unpin for WorkspaceIngestResult
impl UnsafeUnpin for WorkspaceIngestResult
impl UnwindSafe for WorkspaceIngestResult
Blanket Implementations§
impl<T> Allocation for T
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