pub struct IndexInfo {
pub name: String,
pub extractor_type: &'static str,
pub schema_version: u32,
}Expand description
Metadata about a registered secondary index.
Returned by Isam::secondary_indices.
Fields§
§name: StringThe name the index was registered under.
extractor_type: &'static strFully-qualified type name of the DeriveKey extractor implementation.
Provided by std::any::type_name — suitable for display and logging,
but not for persistent storage (the value may change across compiler
versions or if the type is renamed or moved).
schema_version: u32The index schema version stored in the .sidx metadata.
Set to 0 for newly created indices and updated by
Isam::migrate_index. Use this to confirm that a migration has
been applied, or to detect indices that predate schema versioning.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexInfo
impl RefUnwindSafe for IndexInfo
impl Send for IndexInfo
impl Sync for IndexInfo
impl Unpin for IndexInfo
impl UnsafeUnpin for IndexInfo
impl UnwindSafe for IndexInfo
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