pub struct IndexDef {
pub name: String,
pub path: FieldPath,
pub kind: IndexKind,
}Expand description
Secondary index definition for one collection schema.
Fields§
§name: StringStable identifier within a collection schema (e.g. "email_unique").
path: FieldPathField path whose scalar value is indexed (may be nested, e.g. ["profile","timezone"]).
kind: IndexKindTrait Implementations§
impl Eq for IndexDef
impl StructuralPartialEq for IndexDef
Auto Trait Implementations§
impl Freeze for IndexDef
impl RefUnwindSafe for IndexDef
impl Send for IndexDef
impl Sync for IndexDef
impl Unpin for IndexDef
impl UnsafeUnpin for IndexDef
impl UnwindSafe for IndexDef
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