pub struct ServerMessageTranscript {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub timestamp: Option<f64>,
pub artifact: Option<Artifact>,
pub assistant: Option<CreateAssistantDto>,
pub customer: Option<CreateCustomerDto>,
pub call: Option<Call>,
pub chat: Option<Chat>,
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.
artifact: Option<Artifact>
This is a live version of the call.artifact
. This matches what is stored on call.artifact
after the call.
assistant: Option<CreateAssistantDto>
This is the assistant that the message is associated with.
customer: Option<CreateCustomerDto>
This is the customer that the message is associated with.
call: Option<Call>
This is the call that the message is associated with.
chat: Option<Chat>
This is the chat object.
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 ServerMessageTranscript
impl ServerMessageTranscript
pub fn new( type: TypeTrue, role: RoleTrue, transcript_type: TranscriptTypeTrue, transcript: String, ) -> ServerMessageTranscript
Trait Implementations§
Source§impl Clone for ServerMessageTranscript
impl Clone for ServerMessageTranscript
Source§fn clone(&self) -> ServerMessageTranscript
fn clone(&self) -> ServerMessageTranscript
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 ServerMessageTranscript
impl Debug for ServerMessageTranscript
Source§impl Default for ServerMessageTranscript
impl Default for ServerMessageTranscript
Source§fn default() -> ServerMessageTranscript
fn default() -> ServerMessageTranscript
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerMessageTranscript
impl<'de> Deserialize<'de> for ServerMessageTranscript
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 ServerMessageTranscript
impl PartialEq for ServerMessageTranscript
Source§impl Serialize for ServerMessageTranscript
impl Serialize for ServerMessageTranscript
impl StructuralPartialEq for ServerMessageTranscript
Auto Trait Implementations§
impl Freeze for ServerMessageTranscript
impl RefUnwindSafe for ServerMessageTranscript
impl Send for ServerMessageTranscript
impl Sync for ServerMessageTranscript
impl Unpin for ServerMessageTranscript
impl UnwindSafe for ServerMessageTranscript
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