#[non_exhaustive]pub struct RealTimeContactAnalysisSegmentTranscript {
pub id: String,
pub participant_id: String,
pub participant_role: ParticipantRole,
pub display_name: Option<String>,
pub content: String,
pub content_type: Option<String>,
pub time: Option<RealTimeContactAnalysisTimeData>,
pub redaction: Option<RealTimeContactAnalysisTranscriptItemRedaction>,
pub sentiment: Option<RealTimeContactAnalysisSentimentLabel>,
}
Expand description
The analyzed transcript segment.
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.id: String
The identifier of the transcript.
participant_id: String
The identifier of the participant.
participant_role: ParticipantRole
The role of the participant. For example, is it a customer, agent, or system.
display_name: Option<String>
The display name of the participant.
content: String
The content of the transcript. Can be redacted.
content_type: Option<String>
The type of content of the item. For example, text/plain
.
time: Option<RealTimeContactAnalysisTimeData>
Field describing the time of the event. It can have different representations of time.
redaction: Option<RealTimeContactAnalysisTranscriptItemRedaction>
Object describing redaction that was applied to the transcript. If transcript has the field it means part of the transcript was redacted.
sentiment: Option<RealTimeContactAnalysisSentimentLabel>
The sentiment detected for this piece of transcript.
Implementations§
source§impl RealTimeContactAnalysisSegmentTranscript
impl RealTimeContactAnalysisSegmentTranscript
sourcepub fn participant_id(&self) -> &str
pub fn participant_id(&self) -> &str
The identifier of the participant.
sourcepub fn participant_role(&self) -> &ParticipantRole
pub fn participant_role(&self) -> &ParticipantRole
The role of the participant. For example, is it a customer, agent, or system.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The display name of the participant.
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The type of content of the item. For example, text/plain
.
sourcepub fn time(&self) -> Option<&RealTimeContactAnalysisTimeData>
pub fn time(&self) -> Option<&RealTimeContactAnalysisTimeData>
Field describing the time of the event. It can have different representations of time.
sourcepub fn redaction(
&self
) -> Option<&RealTimeContactAnalysisTranscriptItemRedaction>
pub fn redaction( &self ) -> Option<&RealTimeContactAnalysisTranscriptItemRedaction>
Object describing redaction that was applied to the transcript. If transcript has the field it means part of the transcript was redacted.
sourcepub fn sentiment(&self) -> Option<&RealTimeContactAnalysisSentimentLabel>
pub fn sentiment(&self) -> Option<&RealTimeContactAnalysisSentimentLabel>
The sentiment detected for this piece of transcript.
source§impl RealTimeContactAnalysisSegmentTranscript
impl RealTimeContactAnalysisSegmentTranscript
sourcepub fn builder() -> RealTimeContactAnalysisSegmentTranscriptBuilder
pub fn builder() -> RealTimeContactAnalysisSegmentTranscriptBuilder
Creates a new builder-style object to manufacture RealTimeContactAnalysisSegmentTranscript
.
Trait Implementations§
source§impl Clone for RealTimeContactAnalysisSegmentTranscript
impl Clone for RealTimeContactAnalysisSegmentTranscript
source§fn clone(&self) -> RealTimeContactAnalysisSegmentTranscript
fn clone(&self) -> RealTimeContactAnalysisSegmentTranscript
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RealTimeContactAnalysisSegmentTranscript
impl PartialEq for RealTimeContactAnalysisSegmentTranscript
source§fn eq(&self, other: &RealTimeContactAnalysisSegmentTranscript) -> bool
fn eq(&self, other: &RealTimeContactAnalysisSegmentTranscript) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RealTimeContactAnalysisSegmentTranscript
Auto Trait Implementations§
impl Freeze for RealTimeContactAnalysisSegmentTranscript
impl RefUnwindSafe for RealTimeContactAnalysisSegmentTranscript
impl Send for RealTimeContactAnalysisSegmentTranscript
impl Sync for RealTimeContactAnalysisSegmentTranscript
impl Unpin for RealTimeContactAnalysisSegmentTranscript
impl UnwindSafe for RealTimeContactAnalysisSegmentTranscript
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