pub struct ChatCompletionRequestUserMessageBuilder { /* private fields */ }
Expand description
Builder for ChatCompletionRequestUserMessage
.
Implementations§
Source§impl ChatCompletionRequestUserMessageBuilder
impl ChatCompletionRequestUserMessageBuilder
Sourcepub fn content<VALUE: Into<ChatCompletionRequestUserMessageContent>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn content<VALUE: Into<ChatCompletionRequestUserMessageContent>>( &mut self, value: VALUE, ) -> &mut Self
The contents of the user message.
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
Sourcepub fn build(&self) -> Result<ChatCompletionRequestUserMessage, OpenAIError>
pub fn build(&self) -> Result<ChatCompletionRequestUserMessage, OpenAIError>
Builds a new ChatCompletionRequestUserMessage
.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestUserMessageBuilder
impl Clone for ChatCompletionRequestUserMessageBuilder
Source§fn clone(&self) -> ChatCompletionRequestUserMessageBuilder
fn clone(&self) -> ChatCompletionRequestUserMessageBuilder
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 ChatCompletionRequestUserMessageBuilder
impl RefUnwindSafe for ChatCompletionRequestUserMessageBuilder
impl Send for ChatCompletionRequestUserMessageBuilder
impl Sync for ChatCompletionRequestUserMessageBuilder
impl Unpin for ChatCompletionRequestUserMessageBuilder
impl UnwindSafe for ChatCompletionRequestUserMessageBuilder
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