pub struct ChatCompletionRequestFunctionMessage {
pub role: Role,
pub content: Option<String>,
pub name: String,
}
Fields§
§role: Role
The role of the messages author, in this case function
.
content: Option<String>
The return value from the function call, to return to the model.
name: String
The name of the function to call.
Trait Implementations§
source§impl Clone for ChatCompletionRequestFunctionMessage
impl Clone for ChatCompletionRequestFunctionMessage
source§fn clone(&self) -> ChatCompletionRequestFunctionMessage
fn clone(&self) -> ChatCompletionRequestFunctionMessage
Returns a copy of the value. Read more
1.0.0 · 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 ChatCompletionRequestFunctionMessage
impl Default for ChatCompletionRequestFunctionMessage
source§fn default() -> ChatCompletionRequestFunctionMessage
fn default() -> ChatCompletionRequestFunctionMessage
Returns the “default value” for a type. Read more
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 PartialEq for ChatCompletionRequestFunctionMessage
impl PartialEq for ChatCompletionRequestFunctionMessage
source§fn eq(&self, other: &ChatCompletionRequestFunctionMessage) -> bool
fn eq(&self, other: &ChatCompletionRequestFunctionMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChatCompletionRequestFunctionMessage
Auto Trait Implementations§
impl RefUnwindSafe for ChatCompletionRequestFunctionMessage
impl Send for ChatCompletionRequestFunctionMessage
impl Sync for ChatCompletionRequestFunctionMessage
impl Unpin 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