#[non_exhaustive]pub struct GetIndexOptions<'a> {
pub index_name: &'a str,
pub bucket_name: Option<&'a str>,
pub scope_name: Option<&'a str>,
pub on_behalf_of: Option<&'a OnBehalfOfInfo>,
pub retry_strategy: Arc<dyn RetryStrategy>,
pub endpoint: Option<&'a str>,
}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.index_name: &'a str§bucket_name: Option<&'a str>§scope_name: Option<&'a str>§on_behalf_of: Option<&'a OnBehalfOfInfo>§retry_strategy: Arc<dyn RetryStrategy>§endpoint: Option<&'a str>Implementations§
Source§impl<'a> GetIndexOptions<'a>
impl<'a> GetIndexOptions<'a>
pub fn new(index_name: &'a str) -> Self
pub fn bucket_name(self, bucket_name: &'a str) -> Self
pub fn scope_name(self, scope_name: &'a str) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
pub fn endpoint(self, endpoint: &'a str) -> Self
Trait Implementations§
Source§impl<'a> Debug for GetIndexOptions<'a>
impl<'a> Debug for GetIndexOptions<'a>
Source§impl<'a> From<&'a GetIndexOptions<'a>> for GetIndexOptions<'a>
impl<'a> From<&'a GetIndexOptions<'a>> for GetIndexOptions<'a>
Source§fn from(opts: &'a GetIndexOptions<'a>) -> GetIndexOptions<'a>
fn from(opts: &'a GetIndexOptions<'a>) -> GetIndexOptions<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for GetIndexOptions<'a>
impl<'a> !RefUnwindSafe for GetIndexOptions<'a>
impl<'a> Send for GetIndexOptions<'a>
impl<'a> Sync for GetIndexOptions<'a>
impl<'a> Unpin for GetIndexOptions<'a>
impl<'a> UnsafeUnpin for GetIndexOptions<'a>
impl<'a> !UnwindSafe for GetIndexOptions<'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