pub struct ClientMessageConversationUpdate {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub messages: Option<Vec<ArtifactMessagesInner>>,
pub messages_open_ai_formatted: Vec<OpenAiMessage>,
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. "conversation-update" is sent when an update is committed to the conversation history.
messages: Option<Vec<ArtifactMessagesInner>>
This is the most up-to-date conversation history at the time the message is sent.
messages_open_ai_formatted: Vec<OpenAiMessage>
This is the most up-to-date conversation history at the time the message is sent, formatted for OpenAI.
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 ClientMessageConversationUpdate
impl ClientMessageConversationUpdate
pub fn new( type: TypeTrue, messages_open_ai_formatted: Vec<OpenAiMessage>, ) -> ClientMessageConversationUpdate
Trait Implementations§
Source§impl Clone for ClientMessageConversationUpdate
impl Clone for ClientMessageConversationUpdate
Source§fn clone(&self) -> ClientMessageConversationUpdate
fn clone(&self) -> ClientMessageConversationUpdate
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 ClientMessageConversationUpdate
impl Default for ClientMessageConversationUpdate
Source§fn default() -> ClientMessageConversationUpdate
fn default() -> ClientMessageConversationUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageConversationUpdate
impl<'de> Deserialize<'de> for ClientMessageConversationUpdate
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 ClientMessageConversationUpdate
impl PartialEq for ClientMessageConversationUpdate
Source§fn eq(&self, other: &ClientMessageConversationUpdate) -> bool
fn eq(&self, other: &ClientMessageConversationUpdate) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClientMessageConversationUpdate
Auto Trait Implementations§
impl Freeze for ClientMessageConversationUpdate
impl RefUnwindSafe for ClientMessageConversationUpdate
impl Send for ClientMessageConversationUpdate
impl Sync for ClientMessageConversationUpdate
impl Unpin for ClientMessageConversationUpdate
impl UnwindSafe for ClientMessageConversationUpdate
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