pub struct ImportReport {
pub collections: Vec<(SequenceCollectionMetadata, bool)>,
pub n_sequences_written: usize,
pub n_sequences_deduped: usize,
pub n_collections_new: usize,
}Expand description
Result of importing one or more FASTA files.
Unlike StoreStats (a RAM-residency gauge), these are genuine per-run
counters describing what this import actually did.
n_sequences_written + n_sequences_deduped equals the total number of
sequence records seen across all processed files. Files short-circuited
as already-present collections (before their FASTA is ever opened)
contribute nothing to either counter.
Fields§
§collections: Vec<(SequenceCollectionMetadata, bool)>Per-file results in input order: (metadata, was_new).
n_sequences_written: usizeSequences whose bytes were written this run (i.e. genuinely new content). For in-memory stores, sequences newly inserted into the in-memory map.
n_sequences_deduped: usizeSequences already present (by content digest), so no bytes were written.
n_collections_new: usizeNumber of collections newly added by this run.
Trait Implementations§
Source§impl Clone for ImportReport
impl Clone for ImportReport
Auto Trait Implementations§
impl Forget for ImportReport
impl Freeze for ImportReport
impl Move for ImportReport
impl RefUnwindSafe for ImportReport
impl Send for ImportReport
impl Sync for ImportReport
impl Unpin for ImportReport
impl UnsafeUnpin for ImportReport
impl UnwindSafe for ImportReport
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