Struct indexed_db::IndexBuilder
source · 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> 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