pub struct ChatCompletionRequestFunctionMessage {
pub role: ChatCompletionRequestFunctionMessageRole,
pub content: ChatCompletionRequestFunctionMessageContent,
pub name: String,
}๐Deprecated
Expand description
ยงFunction message
Fieldsยง
ยงrole: ChatCompletionRequestFunctionMessageRole๐Deprecated
The role of the messages author, in this case function.
content: ChatCompletionRequestFunctionMessageContent๐Deprecated
ยงname: String๐Deprecated
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 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<'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
Tests for
self and other values to be equal, and is used by ==.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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.