#[non_exhaustive]pub struct DataSourceToIndexFieldMapping {
pub data_source_field_name: String,
pub date_field_format: Option<String>,
pub index_field_name: String,
}Expand description
Maps attributes or field names of the documents synced from the data source to Amazon Kendra index field names. You can set up field mappings for each data source when calling CreateDataSource or UpdateDataSource API. To create custom fields, use the UpdateIndex API to first create an index field and then map to the data source field. For more information, see Mapping data source fields.
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.data_source_field_name: StringThe name of the field in the data source. You must first create the index field using the UpdateIndex API.
date_field_format: Option<String>The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.
index_field_name: StringThe name of the index field to map to the data source field. The index field type must match the data source field type.
Implementations§
source§impl DataSourceToIndexFieldMapping
impl DataSourceToIndexFieldMapping
sourcepub fn data_source_field_name(&self) -> &str
pub fn data_source_field_name(&self) -> &str
The name of the field in the data source. You must first create the index field using the UpdateIndex API.
sourcepub fn date_field_format(&self) -> Option<&str>
pub fn date_field_format(&self) -> Option<&str>
The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.
sourcepub fn index_field_name(&self) -> &str
pub fn index_field_name(&self) -> &str
The name of the index field to map to the data source field. The index field type must match the data source field type.
source§impl DataSourceToIndexFieldMapping
impl DataSourceToIndexFieldMapping
sourcepub fn builder() -> DataSourceToIndexFieldMappingBuilder
pub fn builder() -> DataSourceToIndexFieldMappingBuilder
Creates a new builder-style object to manufacture DataSourceToIndexFieldMapping.
Trait Implementations§
source§impl Clone for DataSourceToIndexFieldMapping
impl Clone for DataSourceToIndexFieldMapping
source§fn clone(&self) -> DataSourceToIndexFieldMapping
fn clone(&self) -> DataSourceToIndexFieldMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for DataSourceToIndexFieldMapping
impl PartialEq for DataSourceToIndexFieldMapping
source§fn eq(&self, other: &DataSourceToIndexFieldMapping) -> bool
fn eq(&self, other: &DataSourceToIndexFieldMapping) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DataSourceToIndexFieldMapping
Auto Trait Implementations§
impl Freeze for DataSourceToIndexFieldMapping
impl RefUnwindSafe for DataSourceToIndexFieldMapping
impl Send for DataSourceToIndexFieldMapping
impl Sync for DataSourceToIndexFieldMapping
impl Unpin for DataSourceToIndexFieldMapping
impl UnwindSafe for DataSourceToIndexFieldMapping
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