#[non_exhaustive]pub struct OpensearchConfiguration {
pub domain_endpoint: String,
pub index_name: String,
pub exact_response: bool,
pub exact_response_fields: Option<ExactResponseFields>,
pub include_fields: Option<Vec<String>>,
}Expand description
Contains details about the configuration of the Amazon OpenSearch Service database used for the AMAZON.QnAIntent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.domain_endpoint: StringThe endpoint of the Amazon OpenSearch Service domain.
index_name: StringThe name of the Amazon OpenSearch Service index.
exact_response: boolSpecifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
exact_response_fields: Option<ExactResponseFields>Contains the names of the fields used for an exact response to the user.
include_fields: Option<Vec<String>>Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
Implementations§
source§impl OpensearchConfiguration
impl OpensearchConfiguration
sourcepub fn domain_endpoint(&self) -> &str
pub fn domain_endpoint(&self) -> &str
The endpoint of the Amazon OpenSearch Service domain.
sourcepub fn index_name(&self) -> &str
pub fn index_name(&self) -> &str
The name of the Amazon OpenSearch Service index.
sourcepub fn exact_response(&self) -> bool
pub fn exact_response(&self) -> bool
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
sourcepub fn exact_response_fields(&self) -> Option<&ExactResponseFields>
pub fn exact_response_fields(&self) -> Option<&ExactResponseFields>
Contains the names of the fields used for an exact response to the user.
sourcepub fn include_fields(&self) -> &[String]
pub fn include_fields(&self) -> &[String]
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_fields.is_none().
source§impl OpensearchConfiguration
impl OpensearchConfiguration
sourcepub fn builder() -> OpensearchConfigurationBuilder
pub fn builder() -> OpensearchConfigurationBuilder
Creates a new builder-style object to manufacture OpensearchConfiguration.
Trait Implementations§
source§impl Clone for OpensearchConfiguration
impl Clone for OpensearchConfiguration
source§fn clone(&self) -> OpensearchConfiguration
fn clone(&self) -> OpensearchConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OpensearchConfiguration
impl Debug for OpensearchConfiguration
source§impl PartialEq for OpensearchConfiguration
impl PartialEq for OpensearchConfiguration
source§fn eq(&self, other: &OpensearchConfiguration) -> bool
fn eq(&self, other: &OpensearchConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OpensearchConfiguration
Auto Trait Implementations§
impl Freeze for OpensearchConfiguration
impl RefUnwindSafe for OpensearchConfiguration
impl Send for OpensearchConfiguration
impl Sync for OpensearchConfiguration
impl Unpin for OpensearchConfiguration
impl UnwindSafe for OpensearchConfiguration
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more