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