pub struct ServerMessageUserInterrupted {
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>,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "user-interrupted" is sent when the user interrupts the assistant.
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.
Implementations§
Source§impl ServerMessageUserInterrupted
impl ServerMessageUserInterrupted
pub fn new(type: TypeTrue) -> ServerMessageUserInterrupted
Trait Implementations§
Source§impl Clone for ServerMessageUserInterrupted
impl Clone for ServerMessageUserInterrupted
Source§fn clone(&self) -> ServerMessageUserInterrupted
fn clone(&self) -> ServerMessageUserInterrupted
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 ServerMessageUserInterrupted
impl Debug for ServerMessageUserInterrupted
Source§impl Default for ServerMessageUserInterrupted
impl Default for ServerMessageUserInterrupted
Source§fn default() -> ServerMessageUserInterrupted
fn default() -> ServerMessageUserInterrupted
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServerMessageUserInterrupted
impl PartialEq for ServerMessageUserInterrupted
Source§fn eq(&self, other: &ServerMessageUserInterrupted) -> bool
fn eq(&self, other: &ServerMessageUserInterrupted) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ServerMessageUserInterrupted
Auto Trait Implementations§
impl Freeze for ServerMessageUserInterrupted
impl RefUnwindSafe for ServerMessageUserInterrupted
impl Send for ServerMessageUserInterrupted
impl Sync for ServerMessageUserInterrupted
impl Unpin for ServerMessageUserInterrupted
impl UnwindSafe for ServerMessageUserInterrupted
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