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