pub struct IndexFilter {
pub pkg_type: Option<i8>,
pub repo: Option<String>,
}Expand description
Selective sub-index filter: keep only sub-indexes whose manifest entry
matches. A None field matches anything, so IndexFilter::default() reads
the whole archive (what read_znippy_index does). Filtering happens at the
(pkg_type, repo) sub-index granularity — whole Arrow IPC streams are
skipped, never read — so a selective extract touches only the matching rows.
Fields§
§pkg_type: Option<i8>Keep only this package-type discriminant (ManifestEntry::pkg_type).
repo: Option<String>Keep only this repo (ManifestEntry::repo).
Implementations§
Trait Implementations§
Source§impl Clone for IndexFilter
impl Clone for IndexFilter
Source§fn clone(&self) -> IndexFilter
fn clone(&self) -> IndexFilter
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 moreSource§impl Debug for IndexFilter
impl Debug for IndexFilter
Source§impl Default for IndexFilter
impl Default for IndexFilter
Source§fn default() -> IndexFilter
fn default() -> IndexFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexFilter
impl RefUnwindSafe for IndexFilter
impl Send for IndexFilter
impl Sync for IndexFilter
impl Unpin for IndexFilter
impl UnsafeUnpin for IndexFilter
impl UnwindSafe for IndexFilter
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