pub struct ServerMessageUserInterrupted {
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>,
}Fields§
§phone_number: Option<ServerMessageAssistantRequestPhoneNumber>§type: TypeThis is the type of the message. "user-interrupted" is sent when the user interrupts the assistant.
timestamp: Option<f64>This is the ISO-8601 formatted timestamp of when the message was sent.
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.
Implementations§
Source§impl ServerMessageUserInterrupted
impl ServerMessageUserInterrupted
pub fn new(type: Type) -> ServerMessageUserInterrupted
Trait Implementations§
Source§impl Clone for ServerMessageUserInterrupted
impl Clone for ServerMessageUserInterrupted
Source§fn clone(&self) -> ServerMessageUserInterrupted
fn clone(&self) -> ServerMessageUserInterrupted
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerMessageUserInterrupted
impl Debug for ServerMessageUserInterrupted
Source§impl Default for ServerMessageUserInterrupted
impl Default for ServerMessageUserInterrupted
Source§fn default() -> ServerMessageUserInterrupted
fn default() -> ServerMessageUserInterrupted
Source§impl<'de> Deserialize<'de> for ServerMessageUserInterrupted
impl<'de> Deserialize<'de> for ServerMessageUserInterrupted
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 OpenApi for ServerMessageUserInterrupted
impl OpenApi for ServerMessageUserInterrupted
Source§fn openapi() -> OpenApi
fn openapi() -> OpenApi
openapi::OpenApi instance which can be parsed with serde or served via
OpenAPI visualization tool such as Swagger UI.Source§impl PartialEq for ServerMessageUserInterrupted
impl PartialEq for ServerMessageUserInterrupted
Source§fn eq(&self, other: &ServerMessageUserInterrupted) -> bool
fn eq(&self, other: &ServerMessageUserInterrupted) -> bool
self and other values to be equal, and is used by ==.