pub struct ChatCompletionRequestFunctionMessage {
pub content: Option<String>,
pub name: String,
}
Fields§
§content: Option<String>
The contents of the function message.
name: String
The name of the function to call.
Implementations§
Source§impl ChatCompletionRequestFunctionMessage
impl ChatCompletionRequestFunctionMessage
Sourcepub fn builder() -> ChatCompletionRequestFunctionMessageBuilder<((), ())>
pub fn builder() -> ChatCompletionRequestFunctionMessageBuilder<((), ())>
Create a builder for building ChatCompletionRequestFunctionMessage
.
On the builder, call .content(...)
(optional), .name(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionRequestFunctionMessage
.
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 · 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 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 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