pub struct ChatCompletionRequestFunctionMessage {
pub content: Option<String>,
pub name: String,
}Available on crate feature
chat-completion-types only.Fields§
§content: Option<String>The return value from the function call, to return to the model.
name: StringThe name of the function to call.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestFunctionMessage
impl<'de> Deserialize<'de> for ChatCompletionRequestFunctionMessage
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 From<ChatCompletionRequestFunctionMessage> for ChatCompletionRequestMessage
impl From<ChatCompletionRequestFunctionMessage> for ChatCompletionRequestMessage
Source§fn from(value: ChatCompletionRequestFunctionMessage) -> Self
fn from(value: ChatCompletionRequestFunctionMessage) -> Self
Converts to this type from the input type.
Source§impl From<ChatCompletionRequestFunctionMessage> for Vec<ChatCompletionRequestMessage>
impl From<ChatCompletionRequestFunctionMessage> for Vec<ChatCompletionRequestMessage>
Source§fn from(value: ChatCompletionRequestFunctionMessage) -> Self
fn from(value: ChatCompletionRequestFunctionMessage) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ChatCompletionRequestFunctionMessage
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestFunctionMessage
impl RefUnwindSafe for ChatCompletionRequestFunctionMessage
impl Send for ChatCompletionRequestFunctionMessage
impl Sync for ChatCompletionRequestFunctionMessage
impl Unpin for ChatCompletionRequestFunctionMessage
impl UnsafeUnpin for ChatCompletionRequestFunctionMessage
impl UnwindSafe for ChatCompletionRequestFunctionMessage
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