#[non_exhaustive]pub struct TranscriptBuilder { /* private fields */ }
Expand description
A builder for Transcript
.
Implementations§
source§impl TranscriptBuilder
impl TranscriptBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the transcript.
This field is required.sourcepub fn participant_id(self, input: impl Into<String>) -> Self
pub fn participant_id(self, input: impl Into<String>) -> Self
The identifier of the participant.
This field is required.sourcepub fn set_participant_id(self, input: Option<String>) -> Self
pub fn set_participant_id(self, input: Option<String>) -> Self
The identifier of the participant.
sourcepub fn get_participant_id(&self) -> &Option<String>
pub fn get_participant_id(&self) -> &Option<String>
The identifier of the participant.
sourcepub fn participant_role(self, input: impl Into<String>) -> Self
pub fn participant_role(self, input: impl Into<String>) -> Self
The role of participant. For example, is it a customer, agent, or system.
This field is required.sourcepub fn set_participant_role(self, input: Option<String>) -> Self
pub fn set_participant_role(self, input: Option<String>) -> Self
The role of participant. For example, is it a customer, agent, or system.
sourcepub fn get_participant_role(&self) -> &Option<String>
pub fn get_participant_role(&self) -> &Option<String>
The role of participant. For example, is it a customer, agent, or system.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The content of the transcript.
This field is required.sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The content of the transcript.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
The content of the transcript.
sourcepub fn begin_offset_millis(self, input: i32) -> Self
pub fn begin_offset_millis(self, input: i32) -> Self
The beginning offset in the contact for this transcript.
This field is required.sourcepub fn set_begin_offset_millis(self, input: Option<i32>) -> Self
pub fn set_begin_offset_millis(self, input: Option<i32>) -> Self
The beginning offset in the contact for this transcript.
sourcepub fn get_begin_offset_millis(&self) -> &Option<i32>
pub fn get_begin_offset_millis(&self) -> &Option<i32>
The beginning offset in the contact for this transcript.
sourcepub fn end_offset_millis(self, input: i32) -> Self
pub fn end_offset_millis(self, input: i32) -> Self
The end offset in the contact for this transcript.
This field is required.sourcepub fn set_end_offset_millis(self, input: Option<i32>) -> Self
pub fn set_end_offset_millis(self, input: Option<i32>) -> Self
The end offset in the contact for this transcript.
sourcepub fn get_end_offset_millis(&self) -> &Option<i32>
pub fn get_end_offset_millis(&self) -> &Option<i32>
The end offset in the contact for this transcript.
sourcepub fn sentiment(self, input: SentimentValue) -> Self
pub fn sentiment(self, input: SentimentValue) -> Self
The sentiment of the detected for this piece of transcript.
This field is required.sourcepub fn set_sentiment(self, input: Option<SentimentValue>) -> Self
pub fn set_sentiment(self, input: Option<SentimentValue>) -> Self
The sentiment of the detected for this piece of transcript.
sourcepub fn get_sentiment(&self) -> &Option<SentimentValue>
pub fn get_sentiment(&self) -> &Option<SentimentValue>
The sentiment of the detected for this piece of transcript.
sourcepub fn issues_detected(self, input: IssueDetected) -> Self
pub fn issues_detected(self, input: IssueDetected) -> Self
Appends an item to issues_detected
.
To override the contents of this collection use set_issues_detected
.
List of positions where issues were detected on the transcript.
sourcepub fn set_issues_detected(self, input: Option<Vec<IssueDetected>>) -> Self
pub fn set_issues_detected(self, input: Option<Vec<IssueDetected>>) -> Self
List of positions where issues were detected on the transcript.
sourcepub fn get_issues_detected(&self) -> &Option<Vec<IssueDetected>>
pub fn get_issues_detected(&self) -> &Option<Vec<IssueDetected>>
List of positions where issues were detected on the transcript.
sourcepub fn build(self) -> Transcript
pub fn build(self) -> Transcript
Consumes the builder and constructs a Transcript
.
Trait Implementations§
source§impl Clone for TranscriptBuilder
impl Clone for TranscriptBuilder
source§fn clone(&self) -> TranscriptBuilder
fn clone(&self) -> TranscriptBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TranscriptBuilder
impl Debug for TranscriptBuilder
source§impl Default for TranscriptBuilder
impl Default for TranscriptBuilder
source§fn default() -> TranscriptBuilder
fn default() -> TranscriptBuilder
source§impl PartialEq for TranscriptBuilder
impl PartialEq for TranscriptBuilder
source§fn eq(&self, other: &TranscriptBuilder) -> bool
fn eq(&self, other: &TranscriptBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TranscriptBuilder
Auto Trait Implementations§
impl Freeze for TranscriptBuilder
impl RefUnwindSafe for TranscriptBuilder
impl Send for TranscriptBuilder
impl Sync for TranscriptBuilder
impl Unpin for TranscriptBuilder
impl UnwindSafe for TranscriptBuilder
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