Struct aws_sdk_lexmodelsv2::types::ExactResponseFields
source · #[non_exhaustive]pub struct ExactResponseFields {
pub question_field: String,
pub answer_field: String,
}Expand description
Contains the names of the fields used for an exact response to the user.
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.question_field: StringThe name of the field that contains the query made to the OpenSearch Service database.
answer_field: StringThe name of the field that contains the answer to the query made to the OpenSearch Service database.
Implementations§
source§impl ExactResponseFields
impl ExactResponseFields
sourcepub fn question_field(&self) -> &str
pub fn question_field(&self) -> &str
The name of the field that contains the query made to the OpenSearch Service database.
sourcepub fn answer_field(&self) -> &str
pub fn answer_field(&self) -> &str
The name of the field that contains the answer to the query made to the OpenSearch Service database.
source§impl ExactResponseFields
impl ExactResponseFields
sourcepub fn builder() -> ExactResponseFieldsBuilder
pub fn builder() -> ExactResponseFieldsBuilder
Creates a new builder-style object to manufacture ExactResponseFields.
Trait Implementations§
source§impl Clone for ExactResponseFields
impl Clone for ExactResponseFields
source§fn clone(&self) -> ExactResponseFields
fn clone(&self) -> ExactResponseFields
Returns a copy 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 Debug for ExactResponseFields
impl Debug for ExactResponseFields
source§impl PartialEq for ExactResponseFields
impl PartialEq for ExactResponseFields
source§fn eq(&self, other: &ExactResponseFields) -> bool
fn eq(&self, other: &ExactResponseFields) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExactResponseFields
Auto Trait Implementations§
impl Freeze for ExactResponseFields
impl RefUnwindSafe for ExactResponseFields
impl Send for ExactResponseFields
impl Sync for ExactResponseFields
impl Unpin for ExactResponseFields
impl UnwindSafe for ExactResponseFields
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
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>
Creates a shared type from an unshared type.