pub struct ChatCompletionRequestDeveloperMessageBuilder { /* private fields */ }
Expand description
Builder for ChatCompletionRequestDeveloperMessage
.
Implementations§
Source§impl ChatCompletionRequestDeveloperMessageBuilder
impl ChatCompletionRequestDeveloperMessageBuilder
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 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 ChatCompletionRequestDeveloperMessageBuilder
impl Clone for ChatCompletionRequestDeveloperMessageBuilder
Source§fn clone(&self) -> ChatCompletionRequestDeveloperMessageBuilder
fn clone(&self) -> ChatCompletionRequestDeveloperMessageBuilder
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 ChatCompletionRequestDeveloperMessageBuilder
impl RefUnwindSafe for ChatCompletionRequestDeveloperMessageBuilder
impl Send for ChatCompletionRequestDeveloperMessageBuilder
impl Sync for ChatCompletionRequestDeveloperMessageBuilder
impl Unpin for ChatCompletionRequestDeveloperMessageBuilder
impl UnwindSafe for ChatCompletionRequestDeveloperMessageBuilder
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