pub struct IndexSpec {
pub name: String,
pub expression: String,
pub type_def: String,
pub granularity: u32,
}Expand description
A secondary data-skipping index.
Safety posture: name is identifier-validated. expression and type_def
are app-controlled raw SQL (like TableSpec::engine) — they are emitted
verbatim, so never build them from untrusted input.
Fields§
§name: String§expression: StringRaw, app-controlled index expression, e.g. "trace_id" or a real expression.
type_def: StringRaw, app-controlled index type, e.g. "bloom_filter(0.01)" or
"tokenbf_v1(8192, 3, 0)".
granularity: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexSpec
impl RefUnwindSafe for IndexSpec
impl Send for IndexSpec
impl Sync for IndexSpec
impl Unpin for IndexSpec
impl UnsafeUnpin for IndexSpec
impl UnwindSafe for IndexSpec
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