#[non_exhaustive]pub enum RealtimeContactAnalysisSegment {
Attachments(RealTimeContactAnalysisSegmentAttachments),
Categories(RealTimeContactAnalysisSegmentCategories),
Event(RealTimeContactAnalysisSegmentEvent),
Issues(RealTimeContactAnalysisSegmentIssues),
Transcript(RealTimeContactAnalysisSegmentTranscript),
Unknown,
}
Expand description
An analyzed segment for a real-time analysis session.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Attachments(RealTimeContactAnalysisSegmentAttachments)
The analyzed attachments.
Categories(RealTimeContactAnalysisSegmentCategories)
The matched category rules.
Event(RealTimeContactAnalysisSegmentEvent)
Segment type describing a contact event.
Issues(RealTimeContactAnalysisSegmentIssues)
Segment type containing a list of detected issues.
Transcript(RealTimeContactAnalysisSegmentTranscript)
The analyzed transcript segment.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl RealtimeContactAnalysisSegment
impl RealtimeContactAnalysisSegment
sourcepub fn as_attachments(
&self
) -> Result<&RealTimeContactAnalysisSegmentAttachments, &Self>
pub fn as_attachments( &self ) -> Result<&RealTimeContactAnalysisSegmentAttachments, &Self>
Tries to convert the enum instance into Attachments
, extracting the inner RealTimeContactAnalysisSegmentAttachments
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_attachments(&self) -> bool
pub fn is_attachments(&self) -> bool
Returns true if this is a Attachments
.
sourcepub fn as_categories(
&self
) -> Result<&RealTimeContactAnalysisSegmentCategories, &Self>
pub fn as_categories( &self ) -> Result<&RealTimeContactAnalysisSegmentCategories, &Self>
Tries to convert the enum instance into Categories
, extracting the inner RealTimeContactAnalysisSegmentCategories
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_categories(&self) -> bool
pub fn is_categories(&self) -> bool
Returns true if this is a Categories
.
sourcepub fn as_event(&self) -> Result<&RealTimeContactAnalysisSegmentEvent, &Self>
pub fn as_event(&self) -> Result<&RealTimeContactAnalysisSegmentEvent, &Self>
Tries to convert the enum instance into Event
, extracting the inner RealTimeContactAnalysisSegmentEvent
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn as_issues(&self) -> Result<&RealTimeContactAnalysisSegmentIssues, &Self>
pub fn as_issues(&self) -> Result<&RealTimeContactAnalysisSegmentIssues, &Self>
Tries to convert the enum instance into Issues
, extracting the inner RealTimeContactAnalysisSegmentIssues
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn as_transcript(
&self
) -> Result<&RealTimeContactAnalysisSegmentTranscript, &Self>
pub fn as_transcript( &self ) -> Result<&RealTimeContactAnalysisSegmentTranscript, &Self>
Tries to convert the enum instance into Transcript
, extracting the inner RealTimeContactAnalysisSegmentTranscript
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_transcript(&self) -> bool
pub fn is_transcript(&self) -> bool
Returns true if this is a Transcript
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for RealtimeContactAnalysisSegment
impl Clone for RealtimeContactAnalysisSegment
source§fn clone(&self) -> RealtimeContactAnalysisSegment
fn clone(&self) -> RealtimeContactAnalysisSegment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RealtimeContactAnalysisSegment
impl PartialEq for RealtimeContactAnalysisSegment
source§fn eq(&self, other: &RealtimeContactAnalysisSegment) -> bool
fn eq(&self, other: &RealtimeContactAnalysisSegment) -> bool
self
and other
values to be equal, and is used
by ==
.