pub struct FtsFileInfo {
pub table_id_hex: String,
pub index_id_hex: Option<String>,
pub file_type: FtsFileType,
}Expand description
Parsed metadata from an FTS auxiliary filename.
§Examples
use idb::innodb::fts::{parse_fts_filename, FtsFileType};
let info = parse_fts_filename("FTS_0000000000000437_CONFIG.ibd").unwrap();
assert_eq!(info.table_id_hex, "0000000000000437");
assert_eq!(info.file_type, FtsFileType::Config);
let info = parse_fts_filename("FTS_0000000000000437_00000000000004a2_INDEX_1.ibd").unwrap();
assert_eq!(info.table_id_hex, "0000000000000437");
assert_eq!(info.index_id_hex, Some("00000000000004a2".to_string()));
assert_eq!(info.file_type, FtsFileType::Index(1));Fields§
§table_id_hex: StringHex-encoded table ID from the filename.
index_id_hex: Option<String>Hex-encoded index ID (for INDEX files only).
file_type: FtsFileTypeType of FTS auxiliary file.
Trait Implementations§
Source§impl Clone for FtsFileInfo
impl Clone for FtsFileInfo
Source§fn clone(&self) -> FtsFileInfo
fn clone(&self) -> FtsFileInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 FtsFileInfo
impl Debug for FtsFileInfo
Auto Trait Implementations§
impl Freeze for FtsFileInfo
impl RefUnwindSafe for FtsFileInfo
impl Send for FtsFileInfo
impl Sync for FtsFileInfo
impl Unpin for FtsFileInfo
impl UnsafeUnpin for FtsFileInfo
impl UnwindSafe for FtsFileInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more