pub struct ClientMessageHang {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
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. "hang" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as: - the model is too slow to respond - the voice is too slow to respond - the tool call is still waiting for a response from your server - etc.
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 ClientMessageHang
impl ClientMessageHang
pub fn new(type: TypeTrue) -> ClientMessageHang
Trait Implementations§
Source§impl Clone for ClientMessageHang
impl Clone for ClientMessageHang
Source§fn clone(&self) -> ClientMessageHang
fn clone(&self) -> ClientMessageHang
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 ClientMessageHang
impl Debug for ClientMessageHang
Source§impl Default for ClientMessageHang
impl Default for ClientMessageHang
Source§fn default() -> ClientMessageHang
fn default() -> ClientMessageHang
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageHang
impl<'de> Deserialize<'de> for ClientMessageHang
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 ClientMessageHang
impl PartialEq for ClientMessageHang
Source§impl Serialize for ClientMessageHang
impl Serialize for ClientMessageHang
impl StructuralPartialEq for ClientMessageHang
Auto Trait Implementations§
impl Freeze for ClientMessageHang
impl RefUnwindSafe for ClientMessageHang
impl Send for ClientMessageHang
impl Sync for ClientMessageHang
impl Unpin for ClientMessageHang
impl UnwindSafe for ClientMessageHang
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