pub struct ChatCompletionRequestSystemMessageBuilder { /* private fields */ }
Expand description
Builder for ChatCompletionRequestSystemMessage
.
Implementations§
Source§impl ChatCompletionRequestSystemMessageBuilder
impl ChatCompletionRequestSystemMessageBuilder
Sourcepub fn content<VALUE: Into<PartibleTextContent>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn content<VALUE: Into<PartibleTextContent>>( &mut self, value: VALUE, ) -> &mut Self
The contents of the system 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<ChatCompletionRequestSystemMessage, OpenAIError>
pub fn build(&self) -> Result<ChatCompletionRequestSystemMessage, OpenAIError>
Builds a new ChatCompletionRequestSystemMessage
.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestSystemMessageBuilder
impl Clone for ChatCompletionRequestSystemMessageBuilder
Source§fn clone(&self) -> ChatCompletionRequestSystemMessageBuilder
fn clone(&self) -> ChatCompletionRequestSystemMessageBuilder
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 ChatCompletionRequestSystemMessageBuilder
impl RefUnwindSafe for ChatCompletionRequestSystemMessageBuilder
impl Send for ChatCompletionRequestSystemMessageBuilder
impl Sync for ChatCompletionRequestSystemMessageBuilder
impl Unpin for ChatCompletionRequestSystemMessageBuilder
impl UnwindSafe for ChatCompletionRequestSystemMessageBuilder
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