#[non_exhaustive]pub struct CreateIndexOptions<'a> {
pub bucket_name: &'a str,
pub scope_name: Option<&'a str>,
pub collection_name: Option<&'a str>,
pub index_name: &'a str,
pub num_replicas: Option<u32>,
pub fields: &'a [&'a str],
pub deferred: Option<bool>,
pub ignore_if_exists: Option<bool>,
pub on_behalf_of: Option<&'a OnBehalfOfInfo>,
pub endpoint: Option<String>,
pub retry_strategy: Option<Arc<dyn RetryStrategy>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bucket_name: &'a str§scope_name: Option<&'a str>§collection_name: Option<&'a str>§index_name: &'a str§num_replicas: Option<u32>§fields: &'a [&'a str]§deferred: Option<bool>§ignore_if_exists: Option<bool>§on_behalf_of: Option<&'a OnBehalfOfInfo>§endpoint: Option<String>§retry_strategy: Option<Arc<dyn RetryStrategy>>Implementations§
Source§impl<'a> CreateIndexOptions<'a>
impl<'a> CreateIndexOptions<'a>
pub fn new( bucket_name: &'a str, index_name: &'a str, fields: &'a [&'a str], ) -> Self
pub fn scope_name(self, scope_name: &'a str) -> Self
pub fn collection_name(self, collection_name: &'a str) -> Self
pub fn num_replicas(self, num_replicas: u32) -> Self
pub fn deferred(self, deferred: bool) -> Self
pub fn ignore_if_exists(self, ignore_if_exists: bool) -> Self
pub fn on_behalf_of(self, on_behalf_of: &'a OnBehalfOfInfo) -> Self
pub fn endpoint(self, endpoint: String) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
Trait Implementations§
Source§impl<'a> Clone for CreateIndexOptions<'a>
impl<'a> Clone for CreateIndexOptions<'a>
Source§fn clone(&self) -> CreateIndexOptions<'a>
fn clone(&self) -> CreateIndexOptions<'a>
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 moreSource§impl<'a> Debug for CreateIndexOptions<'a>
impl<'a> Debug for CreateIndexOptions<'a>
Source§impl<'a> From<&CreateIndexOptions<'a>> for CreateIndexOptions<'a>
impl<'a> From<&CreateIndexOptions<'a>> for CreateIndexOptions<'a>
Source§fn from(opts: &CreateIndexOptions<'a>) -> Self
fn from(opts: &CreateIndexOptions<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CreateIndexOptions<'a>
impl<'a> !RefUnwindSafe for CreateIndexOptions<'a>
impl<'a> Send for CreateIndexOptions<'a>
impl<'a> Sync for CreateIndexOptions<'a>
impl<'a> Unpin for CreateIndexOptions<'a>
impl<'a> !UnwindSafe for CreateIndexOptions<'a>
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