#[non_exhaustive]pub struct ToolCallResultItem {
pub tool_name: Option<String>,
pub tool_call_id: Option<String>,
pub status: Option<String>,
}Expand description
Tool call result payload (item type 12).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_name: Option<String>Tool name.
tool_call_id: Option<String>Tool call ID matching the corresponding start item.
status: Option<String>Normalized status string (see ToolCallStatus::as_str).
Trait Implementations§
Source§impl Clone for ToolCallResultItem
impl Clone for ToolCallResultItem
Source§fn clone(&self) -> ToolCallResultItem
fn clone(&self) -> ToolCallResultItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolCallResultItem
impl Debug for ToolCallResultItem
Source§impl Default for ToolCallResultItem
impl Default for ToolCallResultItem
Source§fn default() -> ToolCallResultItem
fn default() -> ToolCallResultItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallResultItem
impl<'de> Deserialize<'de> for ToolCallResultItem
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
Auto Trait Implementations§
impl Freeze for ToolCallResultItem
impl RefUnwindSafe for ToolCallResultItem
impl Send for ToolCallResultItem
impl Sync for ToolCallResultItem
impl Unpin for ToolCallResultItem
impl UnsafeUnpin for ToolCallResultItem
impl UnwindSafe for ToolCallResultItem
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