pub struct ServiceNowKnowledgeArticleConfiguration {
pub crawl_attachments: Option<bool>,
pub document_data_field_name: String,
pub document_title_field_name: Option<String>,
pub exclude_attachment_file_patterns: Option<Vec<String>>,
pub field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>,
pub filter_query: Option<String>,
pub include_attachment_file_patterns: Option<Vec<String>>,
}
Expand description
Provides configuration information for crawling knowledge articles in the ServiceNow site.
Fields
crawl_attachments: Option<bool>
Indicates whether Amazon Kendra should index attachments to knowledge articles.
document_data_field_name: String
The 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.
exclude_attachment_file_patterns: Option<Vec<String>>
List of regular expressions applied to knowledge articles. Items that don't match the inclusion pattern are not indexed. The regex is applied to the field specified in the PatternTargetField
field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>
Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before you map the field.
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.
include_attachment_file_patterns: Option<Vec<String>>
List of regular expressions applied to knowledge articles. Items that don't match the inclusion pattern are not indexed. The regex is applied to the field specified in the PatternTargetField
.
Trait Implementations
sourceimpl Clone for ServiceNowKnowledgeArticleConfiguration
impl Clone for ServiceNowKnowledgeArticleConfiguration
sourcefn clone(&self) -> ServiceNowKnowledgeArticleConfiguration
fn clone(&self) -> ServiceNowKnowledgeArticleConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ServiceNowKnowledgeArticleConfiguration
impl Default for ServiceNowKnowledgeArticleConfiguration
sourcefn default() -> ServiceNowKnowledgeArticleConfiguration
fn default() -> ServiceNowKnowledgeArticleConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ServiceNowKnowledgeArticleConfiguration
impl<'de> Deserialize<'de> for ServiceNowKnowledgeArticleConfiguration
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ServiceNowKnowledgeArticleConfiguration> for ServiceNowKnowledgeArticleConfiguration
impl PartialEq<ServiceNowKnowledgeArticleConfiguration> for ServiceNowKnowledgeArticleConfiguration
sourcefn eq(&self, other: &ServiceNowKnowledgeArticleConfiguration) -> bool
fn eq(&self, other: &ServiceNowKnowledgeArticleConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ServiceNowKnowledgeArticleConfiguration) -> bool
fn ne(&self, other: &ServiceNowKnowledgeArticleConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for ServiceNowKnowledgeArticleConfiguration
Auto Trait Implementations
impl RefUnwindSafe for ServiceNowKnowledgeArticleConfiguration
impl Send for ServiceNowKnowledgeArticleConfiguration
impl Sync for ServiceNowKnowledgeArticleConfiguration
impl Unpin for ServiceNowKnowledgeArticleConfiguration
impl UnwindSafe for ServiceNowKnowledgeArticleConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more