pub struct ChatCompletionRequestFunctionMessageBuilder { /* private fields */ }
Expand description
Builder for ChatCompletionRequestFunctionMessage
.
Implementations§
Source§impl ChatCompletionRequestFunctionMessageBuilder
impl ChatCompletionRequestFunctionMessageBuilder
Sourcepub fn content<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn content<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The return value from the function call, to return to the model.
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the function to call.
Sourcepub fn build(&self) -> Result<ChatCompletionRequestFunctionMessage, OpenAIError>
pub fn build(&self) -> Result<ChatCompletionRequestFunctionMessage, OpenAIError>
Builds a new ChatCompletionRequestFunctionMessage
.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestFunctionMessageBuilder
impl Clone for ChatCompletionRequestFunctionMessageBuilder
Source§fn clone(&self) -> ChatCompletionRequestFunctionMessageBuilder
fn clone(&self) -> ChatCompletionRequestFunctionMessageBuilder
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 moreAuto Trait Implementations§
impl Freeze for ChatCompletionRequestFunctionMessageBuilder
impl RefUnwindSafe for ChatCompletionRequestFunctionMessageBuilder
impl Send for ChatCompletionRequestFunctionMessageBuilder
impl Sync for ChatCompletionRequestFunctionMessageBuilder
impl Unpin for ChatCompletionRequestFunctionMessageBuilder
impl UnwindSafe for ChatCompletionRequestFunctionMessageBuilder
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