Struct rusoto_kendra::QueryResultItem
source · [−]pub struct QueryResultItem {
pub additional_attributes: Option<Vec<AdditionalResultAttribute>>,
pub document_attributes: Option<Vec<DocumentAttribute>>,
pub document_excerpt: Option<TextWithHighlights>,
pub document_id: Option<String>,
pub document_title: Option<TextWithHighlights>,
pub document_uri: Option<String>,
pub feedback_token: Option<String>,
pub id: Option<String>,
pub score_attributes: Option<ScoreAttributes>,
pub type_: Option<String>,
}
Expand description
A single query result.
A query result contains information about a document returned by the query. This includes the original location of the document, a list of attributes assigned to the document, and relevant text from the document that satisfies the query.
Fields
additional_attributes: Option<Vec<AdditionalResultAttribute>>
One or more additional attributes associated with the query result.
document_attributes: Option<Vec<DocumentAttribute>>
An array of document attributes for the document that the query result maps to. For example, the document author (Author) or the source URI (SourceUri) of the document.
document_excerpt: Option<TextWithHighlights>
An extract of the text in the document. Contains information about highlighting the relevant terms in the excerpt.
document_id: Option<String>
The unique identifier for the document.
document_title: Option<TextWithHighlights>
The title of the document. Contains the text of the title and information for highlighting the relevant terms in the title.
document_uri: Option<String>
The URI of the original location of the document.
feedback_token: Option<String>
A token that identifies a particular result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback .
id: Option<String>
The unique identifier for the query result.
score_attributes: Option<ScoreAttributes>
Indicates the confidence that Amazon Kendra has that a result matches the query that you provided. Each result is placed into a bin that indicates the confidence, VERY_HIGH
, HIGH
, MEDIUM
and LOW
. You can use the score to determine if a response meets the confidence needed for your application.
The field is only set to LOW
when the Type
field is set to DOCUMENT
and Amazon Kendra is not confident that the result matches the query.
type_: Option<String>
The type of document.
Trait Implementations
sourceimpl Clone for QueryResultItem
impl Clone for QueryResultItem
sourcefn clone(&self) -> QueryResultItem
fn clone(&self) -> QueryResultItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueryResultItem
impl Debug for QueryResultItem
sourceimpl Default for QueryResultItem
impl Default for QueryResultItem
sourcefn default() -> QueryResultItem
fn default() -> QueryResultItem
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for QueryResultItem
impl<'de> Deserialize<'de> for QueryResultItem
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<QueryResultItem> for QueryResultItem
impl PartialEq<QueryResultItem> for QueryResultItem
sourcefn eq(&self, other: &QueryResultItem) -> bool
fn eq(&self, other: &QueryResultItem) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &QueryResultItem) -> bool
fn ne(&self, other: &QueryResultItem) -> bool
This method tests for !=
.
impl StructuralPartialEq for QueryResultItem
Auto Trait Implementations
impl RefUnwindSafe for QueryResultItem
impl Send for QueryResultItem
impl Sync for QueryResultItem
impl Unpin for QueryResultItem
impl UnwindSafe for QueryResultItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more