#[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 ==
.