pub struct ServerMessageLanguageChangeDetected {
pub phone_number: Option<ServerMessageAssistantRequestPhoneNumber>,
pub type: Type,
pub timestamp: Option<f64>,
pub artifact: Option<Artifact>,
pub assistant: Option<CreateAssistantDto>,
pub customer: Option<CreateCustomerDto>,
pub call: Option<Call>,
pub language: String,
}
Fields§
§phone_number: Option<ServerMessageAssistantRequestPhoneNumber>
§type: Type
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 when the message was sent in milliseconds since Unix Epoch.
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 is currently active. This is provided for convenience. This matches one of the following: - call.assistant
, - call.assistantId
, - call.squad[n].assistant
, - call.squad[n].assistantId
, - call.squadId->[n].assistant
, - call.squadId->[n].assistantId
.
customer: Option<CreateCustomerDto>
This is the customer associated with the call. This matches one of the following: - call.customer
, - call.customerId
.
call: Option<Call>
This is the call object. This matches what was returned in POST /call. Note: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.
language: String
This is the language the transcriber is switched to.
Implementations§
Source§impl ServerMessageLanguageChangeDetected
impl ServerMessageLanguageChangeDetected
pub fn new(type: Type, language: String) -> ServerMessageLanguageChangeDetected
Trait Implementations§
Source§impl Clone for ServerMessageLanguageChangeDetected
impl Clone for ServerMessageLanguageChangeDetected
Source§fn clone(&self) -> ServerMessageLanguageChangeDetected
fn clone(&self) -> ServerMessageLanguageChangeDetected
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ServerMessageLanguageChangeDetected
impl Default for ServerMessageLanguageChangeDetected
Source§fn default() -> ServerMessageLanguageChangeDetected
fn default() -> ServerMessageLanguageChangeDetected
Source§impl<'de> Deserialize<'de> for ServerMessageLanguageChangeDetected
impl<'de> Deserialize<'de> for ServerMessageLanguageChangeDetected
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>,
Source§impl PartialEq for ServerMessageLanguageChangeDetected
impl PartialEq for ServerMessageLanguageChangeDetected
Source§fn eq(&self, other: &ServerMessageLanguageChangeDetected) -> bool
fn eq(&self, other: &ServerMessageLanguageChangeDetected) -> bool
self
and other
values to be equal, and is used by ==
.