pub struct ObjectStoreBuilder { /* private fields */ }Expand description
Builder for ObjectStore.
Implementations§
Source§impl ObjectStoreBuilder
impl ObjectStoreBuilder
Sourcepub fn key_path<VALUE: Into<KeyPath>>(&mut self, value: VALUE) -> &mut Self
pub fn key_path<VALUE: Into<KeyPath>>(&mut self, value: VALUE) -> &mut Self
Object store key path.
Sourcepub fn auto_increment<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn auto_increment<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, object store has auto increment flag set.
Sourcepub fn indexes<VALUE: Into<Vec<ObjectStoreIndex>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn indexes<VALUE: Into<Vec<ObjectStoreIndex>>>( &mut self, value: VALUE, ) -> &mut Self
Indexes in this object store.
Sourcepub fn build(&self) -> Result<ObjectStore, ObjectStoreBuilderError>
pub fn build(&self) -> Result<ObjectStore, ObjectStoreBuilderError>
Trait Implementations§
Source§impl Clone for ObjectStoreBuilder
impl Clone for ObjectStoreBuilder
Source§fn clone(&self) -> ObjectStoreBuilder
fn clone(&self) -> ObjectStoreBuilder
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 ObjectStoreBuilder
impl RefUnwindSafe for ObjectStoreBuilder
impl Send for ObjectStoreBuilder
impl Sync for ObjectStoreBuilder
impl Unpin for ObjectStoreBuilder
impl UnsafeUnpin for ObjectStoreBuilder
impl UnwindSafe for ObjectStoreBuilder
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