Struct aws_sdk_kendra::types::ColumnConfiguration
source · #[non_exhaustive]pub struct ColumnConfiguration {
pub document_id_column_name: String,
pub document_data_column_name: String,
pub document_title_column_name: Option<String>,
pub field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>,
pub change_detecting_columns: Vec<String>,
}Expand description
Provides information about how Amazon Kendra should use the columns of a database in an index.
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.document_id_column_name: StringThe column that provides the document's identifier.
document_data_column_name: StringThe column that contains the contents of the document.
document_title_column_name: Option<String>The column that contains the title of the document.
field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex API.
change_detecting_columns: Vec<String>One to five columns that indicate when a document in the database has changed.
Implementations§
source§impl ColumnConfiguration
impl ColumnConfiguration
sourcepub fn document_id_column_name(&self) -> &str
pub fn document_id_column_name(&self) -> &str
The column that provides the document's identifier.
sourcepub fn document_data_column_name(&self) -> &str
pub fn document_data_column_name(&self) -> &str
The column that contains the contents of the document.
sourcepub fn document_title_column_name(&self) -> Option<&str>
pub fn document_title_column_name(&self) -> Option<&str>
The column that contains the title of the document.
sourcepub fn field_mappings(&self) -> &[DataSourceToIndexFieldMapping]
pub fn field_mappings(&self) -> &[DataSourceToIndexFieldMapping]
An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex API.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .field_mappings.is_none().
sourcepub fn change_detecting_columns(&self) -> &[String]
pub fn change_detecting_columns(&self) -> &[String]
One to five columns that indicate when a document in the database has changed.
source§impl ColumnConfiguration
impl ColumnConfiguration
sourcepub fn builder() -> ColumnConfigurationBuilder
pub fn builder() -> ColumnConfigurationBuilder
Creates a new builder-style object to manufacture ColumnConfiguration.
Trait Implementations§
source§impl Clone for ColumnConfiguration
impl Clone for ColumnConfiguration
source§fn clone(&self) -> ColumnConfiguration
fn clone(&self) -> ColumnConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ColumnConfiguration
impl Debug for ColumnConfiguration
source§impl PartialEq for ColumnConfiguration
impl PartialEq for ColumnConfiguration
source§fn eq(&self, other: &ColumnConfiguration) -> bool
fn eq(&self, other: &ColumnConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ColumnConfiguration
Auto Trait Implementations§
impl Freeze for ColumnConfiguration
impl RefUnwindSafe for ColumnConfiguration
impl Send for ColumnConfiguration
impl Sync for ColumnConfiguration
impl Unpin for ColumnConfiguration
impl UnwindSafe for ColumnConfiguration
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> 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