pub struct IndexBuilder<'a, Err> { /* private fields */ }
Expand description
Helper to build indexes over an ObjectStore
Implementations§
Source§impl<'a, Err> IndexBuilder<'a, Err>
impl<'a, Err> IndexBuilder<'a, Err>
Sourcepub fn create(self) -> Result<(), Err>
pub fn create(self) -> Result<(), Err>
Create the index
Internally, this uses IDBObjectStore::createIndex
.
Sourcepub fn unique(self) -> Self
pub fn unique(self) -> Self
Mark this index as unique
Internally, this sets this property.
Sourcepub fn multi_entry(self) -> Self
pub fn multi_entry(self) -> Self
Mark this index as multi-entry
Internally, this sets this property.
Auto Trait Implementations§
impl<'a, Err> Freeze for IndexBuilder<'a, Err>
impl<'a, Err> RefUnwindSafe for IndexBuilder<'a, Err>where
Err: RefUnwindSafe,
impl<'a, Err> !Send for IndexBuilder<'a, Err>
impl<'a, Err> !Sync for IndexBuilder<'a, Err>
impl<'a, Err> Unpin for IndexBuilder<'a, Err>where
Err: Unpin,
impl<'a, Err> UnwindSafe for IndexBuilder<'a, Err>where
Err: UnwindSafe,
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