[][src]Struct rusoto_kendra::QueryResultItem

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 id: Option<String>,
    pub type_: Option<String>,
}

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>>

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.

id: Option<String>

The unique identifier for the query result.

type_: Option<String>

The type of document.

Trait Implementations

impl Clone for QueryResultItem[src]

impl Debug for QueryResultItem[src]

impl Default for QueryResultItem[src]

impl<'de> Deserialize<'de> for QueryResultItem[src]

impl PartialEq<QueryResultItem> for QueryResultItem[src]

impl StructuralPartialEq for QueryResultItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.