pub struct ChatCompletionRequestToolFunction {
pub name: String,
pub description: String,
pub parameters: Option<Map<String, Value>>,
}Expand description
ChatCompletionRequestToolFunction model.
Fields§
§name: String§description: String§parameters: Option<Map<String, Value>>JSON Schema Draft 2020-12 for tool parameters
Trait Implementations§
Source§impl Clone for ChatCompletionRequestToolFunction
impl Clone for ChatCompletionRequestToolFunction
Source§fn clone(&self) -> ChatCompletionRequestToolFunction
fn clone(&self) -> ChatCompletionRequestToolFunction
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 Default for ChatCompletionRequestToolFunction
impl Default for ChatCompletionRequestToolFunction
Source§fn default() -> ChatCompletionRequestToolFunction
fn default() -> ChatCompletionRequestToolFunction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestToolFunction
impl<'de> Deserialize<'de> for ChatCompletionRequestToolFunction
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
impl StructuralPartialEq for ChatCompletionRequestToolFunction
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestToolFunction
impl RefUnwindSafe for ChatCompletionRequestToolFunction
impl Send for ChatCompletionRequestToolFunction
impl Sync for ChatCompletionRequestToolFunction
impl Unpin for ChatCompletionRequestToolFunction
impl UnsafeUnpin for ChatCompletionRequestToolFunction
impl UnwindSafe for ChatCompletionRequestToolFunction
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