pub struct ObjectStoreIndexBuilder { /* private fields */ }Expand description
Builder for ObjectStoreIndex.
Implementations§
Source§impl ObjectStoreIndexBuilder
impl ObjectStoreIndexBuilder
Sourcepub fn unique<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn unique<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, index is unique.
Sourcepub fn multi_entry<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn multi_entry<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, index allows multiple entries for a key.
Sourcepub fn build(&self) -> Result<ObjectStoreIndex, ObjectStoreIndexBuilderError>
pub fn build(&self) -> Result<ObjectStoreIndex, ObjectStoreIndexBuilderError>
Trait Implementations§
Source§impl Clone for ObjectStoreIndexBuilder
impl Clone for ObjectStoreIndexBuilder
Source§fn clone(&self) -> ObjectStoreIndexBuilder
fn clone(&self) -> ObjectStoreIndexBuilder
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 moreAuto Trait Implementations§
impl Freeze for ObjectStoreIndexBuilder
impl RefUnwindSafe for ObjectStoreIndexBuilder
impl Send for ObjectStoreIndexBuilder
impl Sync for ObjectStoreIndexBuilder
impl Unpin for ObjectStoreIndexBuilder
impl UnsafeUnpin for ObjectStoreIndexBuilder
impl UnwindSafe for ObjectStoreIndexBuilder
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