pub struct CompletionCreateFunction {
pub name: String,
pub description: Option<String>,
pub parameters: Option<Value>,
}Fields§
§name: StringThe name of the function to be called.
description: Option<String>A description of what the function does, used by the model to choose when and
parameters: Option<Value>The parameters the functions accepts, described as a JSON Schema object.
Trait Implementations§
Source§impl Clone for CompletionCreateFunction
impl Clone for CompletionCreateFunction
Source§fn clone(&self) -> CompletionCreateFunction
fn clone(&self) -> CompletionCreateFunction
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 CompletionCreateFunction
impl Debug for CompletionCreateFunction
Source§impl<'de> Deserialize<'de> for CompletionCreateFunction
impl<'de> Deserialize<'de> for CompletionCreateFunction
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 CompletionCreateFunction
impl RefUnwindSafe for CompletionCreateFunction
impl Send for CompletionCreateFunction
impl Sync for CompletionCreateFunction
impl Unpin for CompletionCreateFunction
impl UnsafeUnpin for CompletionCreateFunction
impl UnwindSafe for CompletionCreateFunction
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