Struct aws_sdk_connectcontactlens::types::Categories
source · #[non_exhaustive]pub struct Categories {
pub matched_categories: Option<Vec<String>>,
pub matched_details: Option<HashMap<String, CategoryDetails>>,
}
Expand description
Provides the category rules that are used to automatically categorize contacts based on uttered keywords and phrases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.matched_categories: Option<Vec<String>>
The category rules that have been matched in the analyzed segment.
matched_details: Option<HashMap<String, CategoryDetails>>
The category rule that was matched and when it occurred in the transcript.
Implementations§
source§impl Categories
impl Categories
sourcepub fn matched_categories(&self) -> &[String]
pub fn matched_categories(&self) -> &[String]
The category rules that have been matched in the analyzed segment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .matched_categories.is_none()
.
sourcepub fn matched_details(&self) -> Option<&HashMap<String, CategoryDetails>>
pub fn matched_details(&self) -> Option<&HashMap<String, CategoryDetails>>
The category rule that was matched and when it occurred in the transcript.
source§impl Categories
impl Categories
sourcepub fn builder() -> CategoriesBuilder
pub fn builder() -> CategoriesBuilder
Creates a new builder-style object to manufacture Categories
.
Trait Implementations§
source§impl Clone for Categories
impl Clone for Categories
source§fn clone(&self) -> Categories
fn clone(&self) -> Categories
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Categories
impl Debug for Categories
source§impl PartialEq for Categories
impl PartialEq for Categories
source§fn eq(&self, other: &Categories) -> bool
fn eq(&self, other: &Categories) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Categories
Auto Trait Implementations§
impl Freeze for Categories
impl RefUnwindSafe for Categories
impl Send for Categories
impl Sync for Categories
impl Unpin for Categories
impl UnwindSafe for Categories
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.