#[non_exhaustive]pub struct CreateIndexOptions<'a> { /* private fields */ }Implementations§
Source§impl<'a> CreateIndexOptions<'a>
impl<'a> CreateIndexOptions<'a>
pub fn new() -> Self
pub fn bucket_name(self, bucket_name: &'a str) -> Self
pub fn scope_name(self, scope_name: impl Into<Option<&'a str>>) -> Self
pub fn collection_name( self, collection_name: impl Into<Option<&'a str>>, ) -> Self
pub fn index_name(self, index_name: &'a str) -> Self
pub fn num_replicas(self, num_replicas: impl Into<Option<u32>>) -> Self
pub fn fields(self, fields: &'a [&'a str]) -> Self
pub fn deferred(self, deferred: impl Into<Option<bool>>) -> Self
pub fn ignore_if_exists(self, ignore_if_exists: impl Into<Option<bool>>) -> Self
pub fn on_behalf_of( self, on_behalf_of: impl Into<Option<&'a OnBehalfOfInfo>>, ) -> 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> Default for CreateIndexOptions<'a>
impl<'a> Default for CreateIndexOptions<'a>
Source§fn default() -> CreateIndexOptions<'a>
fn default() -> CreateIndexOptions<'a>
Returns the “default value” for a type. Read more
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> UnsafeUnpin 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