pub struct RestoreCollectionConfigBuilder { /* private fields */ }Expand description
Builder for RestoreCollectionConfig.
Implementations§
Source§impl RestoreCollectionConfigBuilder
impl RestoreCollectionConfigBuilder
Sourcepub fn parameters(&mut self, value: Value) -> &mut Self
pub fn parameters(&mut self, value: Value) -> &mut Self
The collection’s properties (same highly variable shape used
throughout this crate for collection/view properties - kept as
Value rather than exhaustively typed)
Sourcepub fn indexes(&mut self, value: Vec<Value>) -> &mut Self
pub fn indexes(&mut self, value: Vec<Value>) -> &mut Self
The collection’s indexes to (re-)create alongside it
Sourcepub fn overwrite(&mut self, value: bool) -> &mut Self
pub fn overwrite(&mut self, value: bool) -> &mut Self
Whether to drop and recreate the collection if it already exists
Sourcepub fn force(&mut self, value: bool) -> &mut Self
pub fn force(&mut self, value: bool) -> &mut Self
Whether to continue even if creating the collection/its indexes runs into (non-fatal) errors
Sourcepub fn build(
&self,
) -> Result<RestoreCollectionConfig, RestoreCollectionConfigBuilderError>
pub fn build( &self, ) -> Result<RestoreCollectionConfig, RestoreCollectionConfigBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RestoreCollectionConfigBuilder
impl RefUnwindSafe for RestoreCollectionConfigBuilder
impl Send for RestoreCollectionConfigBuilder
impl Sync for RestoreCollectionConfigBuilder
impl Unpin for RestoreCollectionConfigBuilder
impl UnsafeUnpin for RestoreCollectionConfigBuilder
impl UnwindSafe for RestoreCollectionConfigBuilder
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