pub struct ClientMessageSpeechUpdate {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub status: StatusTrue,
pub role: RoleTrue,
pub turn: Option<f64>,
pub timestamp: Option<f64>,
pub call: Option<Call>,
pub customer: Option<CreateCustomerDto>,
pub assistant: Option<CreateAssistantDto>,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "speech-update" is sent whenever assistant or user start or stop speaking.
status: StatusTrue
This is the status of the speech update.
role: RoleTrue
This is the role which the speech update is for.
turn: Option<f64>
This is the turn number of the speech update (0-indexed).
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.
Implementations§
Source§impl ClientMessageSpeechUpdate
impl ClientMessageSpeechUpdate
pub fn new( type: TypeTrue, status: StatusTrue, role: RoleTrue, ) -> ClientMessageSpeechUpdate
Trait Implementations§
Source§impl Clone for ClientMessageSpeechUpdate
impl Clone for ClientMessageSpeechUpdate
Source§fn clone(&self) -> ClientMessageSpeechUpdate
fn clone(&self) -> ClientMessageSpeechUpdate
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 ClientMessageSpeechUpdate
impl Debug for ClientMessageSpeechUpdate
Source§impl Default for ClientMessageSpeechUpdate
impl Default for ClientMessageSpeechUpdate
Source§fn default() -> ClientMessageSpeechUpdate
fn default() -> ClientMessageSpeechUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageSpeechUpdate
impl<'de> Deserialize<'de> for ClientMessageSpeechUpdate
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
impl StructuralPartialEq for ClientMessageSpeechUpdate
Auto Trait Implementations§
impl Freeze for ClientMessageSpeechUpdate
impl RefUnwindSafe for ClientMessageSpeechUpdate
impl Send for ClientMessageSpeechUpdate
impl Sync for ClientMessageSpeechUpdate
impl Unpin for ClientMessageSpeechUpdate
impl UnwindSafe for ClientMessageSpeechUpdate
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