#[non_exhaustive]pub struct ServiceNowKnowledgeArticleConfiguration {
pub crawl_attachments: bool,
pub include_attachment_file_patterns: Option<Vec<String>>,
pub exclude_attachment_file_patterns: Option<Vec<String>>,
pub document_data_field_name: String,
pub document_title_field_name: Option<String>,
pub field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>,
pub filter_query: Option<String>,
}Expand description
Provides the configuration information for crawling knowledge articles in the ServiceNow site.
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.crawl_attachments: boolTRUE to index attachments to knowledge articles.
include_attachment_file_patterns: Option<Vec<String>>A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
exclude_attachment_file_patterns: Option<Vec<String>>A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
document_data_field_name: StringThe name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
document_title_field_name: Option<String>The name of the ServiceNow field that is mapped to the index document title field.
field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.
filter_query: Option<String>A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
Implementations§
source§impl ServiceNowKnowledgeArticleConfiguration
impl ServiceNowKnowledgeArticleConfiguration
sourcepub fn crawl_attachments(&self) -> bool
pub fn crawl_attachments(&self) -> bool
TRUE to index attachments to knowledge articles.
sourcepub fn include_attachment_file_patterns(&self) -> &[String]
pub fn include_attachment_file_patterns(&self) -> &[String]
A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_attachment_file_patterns.is_none().
sourcepub fn exclude_attachment_file_patterns(&self) -> &[String]
pub fn exclude_attachment_file_patterns(&self) -> &[String]
A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .exclude_attachment_file_patterns.is_none().
sourcepub fn document_data_field_name(&self) -> &str
pub fn document_data_field_name(&self) -> &str
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
sourcepub fn document_title_field_name(&self) -> Option<&str>
pub fn document_title_field_name(&self) -> Option<&str>
The name of the ServiceNow field that is mapped to the index document title field.
sourcepub fn field_mappings(&self) -> &[DataSourceToIndexFieldMapping]
pub fn field_mappings(&self) -> &[DataSourceToIndexFieldMapping]
Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.
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 filter_query(&self) -> Option<&str>
pub fn filter_query(&self) -> Option<&str>
A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
source§impl ServiceNowKnowledgeArticleConfiguration
impl ServiceNowKnowledgeArticleConfiguration
sourcepub fn builder() -> ServiceNowKnowledgeArticleConfigurationBuilder
pub fn builder() -> ServiceNowKnowledgeArticleConfigurationBuilder
Creates a new builder-style object to manufacture ServiceNowKnowledgeArticleConfiguration.
Trait Implementations§
source§impl Clone for ServiceNowKnowledgeArticleConfiguration
impl Clone for ServiceNowKnowledgeArticleConfiguration
source§fn clone(&self) -> ServiceNowKnowledgeArticleConfiguration
fn clone(&self) -> ServiceNowKnowledgeArticleConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for ServiceNowKnowledgeArticleConfiguration
impl PartialEq for ServiceNowKnowledgeArticleConfiguration
source§fn eq(&self, other: &ServiceNowKnowledgeArticleConfiguration) -> bool
fn eq(&self, other: &ServiceNowKnowledgeArticleConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ServiceNowKnowledgeArticleConfiguration
Auto Trait Implementations§
impl Freeze for ServiceNowKnowledgeArticleConfiguration
impl RefUnwindSafe for ServiceNowKnowledgeArticleConfiguration
impl Send for ServiceNowKnowledgeArticleConfiguration
impl Sync for ServiceNowKnowledgeArticleConfiguration
impl Unpin for ServiceNowKnowledgeArticleConfiguration
impl UnwindSafe for ServiceNowKnowledgeArticleConfiguration
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