pub struct ClientMessageToolCallsResult {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub timestamp: Option<f64>,
pub call: Option<Call>,
pub customer: Option<CreateCustomerDto>,
pub assistant: Option<CreateAssistantDto>,
pub tool_call_result: Value,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "tool-calls-result" is sent to forward the result of a tool call to the client.
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.
tool_call_result: Value
This is the result of the tool call.
Implementations§
Source§impl ClientMessageToolCallsResult
impl ClientMessageToolCallsResult
pub fn new( type: TypeTrue, tool_call_result: Value, ) -> ClientMessageToolCallsResult
Trait Implementations§
Source§impl Clone for ClientMessageToolCallsResult
impl Clone for ClientMessageToolCallsResult
Source§fn clone(&self) -> ClientMessageToolCallsResult
fn clone(&self) -> ClientMessageToolCallsResult
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 ClientMessageToolCallsResult
impl Debug for ClientMessageToolCallsResult
Source§impl Default for ClientMessageToolCallsResult
impl Default for ClientMessageToolCallsResult
Source§fn default() -> ClientMessageToolCallsResult
fn default() -> ClientMessageToolCallsResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageToolCallsResult
impl<'de> Deserialize<'de> for ClientMessageToolCallsResult
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 ClientMessageToolCallsResult
impl PartialEq for ClientMessageToolCallsResult
Source§fn eq(&self, other: &ClientMessageToolCallsResult) -> bool
fn eq(&self, other: &ClientMessageToolCallsResult) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClientMessageToolCallsResult
Auto Trait Implementations§
impl Freeze for ClientMessageToolCallsResult
impl RefUnwindSafe for ClientMessageToolCallsResult
impl Send for ClientMessageToolCallsResult
impl Sync for ClientMessageToolCallsResult
impl Unpin for ClientMessageToolCallsResult
impl UnwindSafe for ClientMessageToolCallsResult
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