[][src]Struct rusoto_kendra::Document

pub struct Document {
    pub access_control_list: Option<Vec<Principal>>,
    pub attributes: Option<Vec<DocumentAttribute>>,
    pub blob: Option<Bytes>,
    pub content_type: Option<String>,
    pub id: String,
    pub s3_path: Option<S3Path>,
    pub title: Option<String>,
}

A document in an index.

Fields

access_control_list: Option<Vec<Principal>>

Information to use for user context filtering.

attributes: Option<Vec<DocumentAttribute>>

Custom attributes to apply to the document. Use the custom attributes to provide additional information for searching, to provide facets for refining searches, and to provide additional information in the query response.

blob: Option<Bytes>

The contents of the document.

Documents passed to the Blob parameter must be base64 encoded. Your code might not need to encode the document file bytes if you're using an AWS SDK to call Amazon Kendra operations. If you are calling the Amazon Kendra endpoint directly using REST, you must base64 encode the contents before sending.

content_type: Option<String>

The file type of the document in the Blob field.

id: String

A unique identifier of the document in the index.

s3_path: Option<S3Path>title: Option<String>

The title of the document.

Trait Implementations

impl Clone for Document[src]

impl Debug for Document[src]

impl Default for Document[src]

impl PartialEq<Document> for Document[src]

impl Serialize for Document[src]

impl StructuralPartialEq for Document[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> 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> Sealed<T> for T where
    T: ?Sized

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.