pub struct ServerToolCall {
pub tool_type: Option<String>,
pub args: Option<JsonValue>,
pub id: Option<String>,
}Expand description
A server-side tool call ({toolType, args, id}).
Fields§
§tool_type: Option<String>Tool type.
args: Option<JsonValue>Arguments.
id: Option<String>Call id.
Trait Implementations§
Source§impl Clone for ServerToolCall
impl Clone for ServerToolCall
Source§fn clone(&self) -> ServerToolCall
fn clone(&self) -> ServerToolCall
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 ServerToolCall
impl Debug for ServerToolCall
Source§impl Default for ServerToolCall
impl Default for ServerToolCall
Source§fn default() -> ServerToolCall
fn default() -> ServerToolCall
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerToolCall
impl<'de> Deserialize<'de> for ServerToolCall
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 ServerToolCall
impl RefUnwindSafe for ServerToolCall
impl Send for ServerToolCall
impl Sync for ServerToolCall
impl Unpin for ServerToolCall
impl UnsafeUnpin for ServerToolCall
impl UnwindSafe for ServerToolCall
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