pub struct ClientMessageLanguageChangeDetected {
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 language: String,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "language-change-detected" is sent when the transcriber is automatically switched based on the detected language.
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.
language: String
This is the language the transcriber is switched to.
Implementations§
Source§impl ClientMessageLanguageChangeDetected
impl ClientMessageLanguageChangeDetected
pub fn new( type: TypeTrue, language: String, ) -> ClientMessageLanguageChangeDetected
Trait Implementations§
Source§impl Clone for ClientMessageLanguageChangeDetected
impl Clone for ClientMessageLanguageChangeDetected
Source§fn clone(&self) -> ClientMessageLanguageChangeDetected
fn clone(&self) -> ClientMessageLanguageChangeDetected
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 Default for ClientMessageLanguageChangeDetected
impl Default for ClientMessageLanguageChangeDetected
Source§fn default() -> ClientMessageLanguageChangeDetected
fn default() -> ClientMessageLanguageChangeDetected
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageLanguageChangeDetected
impl<'de> Deserialize<'de> for ClientMessageLanguageChangeDetected
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 ClientMessageLanguageChangeDetected
impl PartialEq for ClientMessageLanguageChangeDetected
Source§fn eq(&self, other: &ClientMessageLanguageChangeDetected) -> bool
fn eq(&self, other: &ClientMessageLanguageChangeDetected) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClientMessageLanguageChangeDetected
Auto Trait Implementations§
impl Freeze for ClientMessageLanguageChangeDetected
impl RefUnwindSafe for ClientMessageLanguageChangeDetected
impl Send for ClientMessageLanguageChangeDetected
impl Sync for ClientMessageLanguageChangeDetected
impl Unpin for ClientMessageLanguageChangeDetected
impl UnwindSafe for ClientMessageLanguageChangeDetected
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