pub struct ClientMessageTranscript {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub timestamp: Option<f64>,
pub call: Option<Call>,
pub customer: Option<CreateCustomerDto>,
pub assistant: Option<CreateAssistantDto>,
pub role: RoleTrue,
pub transcript_type: TranscriptTypeTrue,
pub transcript: String,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript.
timestamp: Option<f64>
This is the timestamp of the message.
call: Option<Call>
This is the call that the message is associated with.
customer: Option<CreateCustomerDto>
This is the customer that the message is associated with.
assistant: Option<CreateAssistantDto>
This is the assistant that the message is associated with.
role: RoleTrue
This is the role for which the transcript is for.
transcript_type: TranscriptTypeTrue
This is the type of the transcript.
transcript: String
This is the transcript content.
Implementations§
Source§impl ClientMessageTranscript
impl ClientMessageTranscript
pub fn new( type: TypeTrue, role: RoleTrue, transcript_type: TranscriptTypeTrue, transcript: String, ) -> ClientMessageTranscript
Trait Implementations§
Source§impl Clone for ClientMessageTranscript
impl Clone for ClientMessageTranscript
Source§fn clone(&self) -> ClientMessageTranscript
fn clone(&self) -> ClientMessageTranscript
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientMessageTranscript
impl Debug for ClientMessageTranscript
Source§impl Default for ClientMessageTranscript
impl Default for ClientMessageTranscript
Source§fn default() -> ClientMessageTranscript
fn default() -> ClientMessageTranscript
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageTranscript
impl<'de> Deserialize<'de> for ClientMessageTranscript
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClientMessageTranscript
impl PartialEq for ClientMessageTranscript
Source§impl Serialize for ClientMessageTranscript
impl Serialize for ClientMessageTranscript
impl StructuralPartialEq for ClientMessageTranscript
Auto Trait Implementations§
impl Freeze for ClientMessageTranscript
impl RefUnwindSafe for ClientMessageTranscript
impl Send for ClientMessageTranscript
impl Sync for ClientMessageTranscript
impl Unpin for ClientMessageTranscript
impl UnwindSafe for ClientMessageTranscript
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