pub struct ChatCompletionRequestMessageContentPartTextArgs { /* private fields */ }
Expand description
Builder for ChatCompletionRequestMessageContentPartText
.
Implementations§
source§impl ChatCompletionRequestMessageContentPartTextArgs
impl ChatCompletionRequestMessageContentPartTextArgs
pub fn type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(
&self
) -> Result<ChatCompletionRequestMessageContentPartText, OpenAIError>
pub fn build( &self ) -> Result<ChatCompletionRequestMessageContentPartText, OpenAIError>
Builds a new ChatCompletionRequestMessageContentPartText
.
§Errors
If a required field has not been initialized.
Trait Implementations§
source§impl Clone for ChatCompletionRequestMessageContentPartTextArgs
impl Clone for ChatCompletionRequestMessageContentPartTextArgs
source§fn clone(&self) -> ChatCompletionRequestMessageContentPartTextArgs
fn clone(&self) -> ChatCompletionRequestMessageContentPartTextArgs
Returns a copy 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 RefUnwindSafe for ChatCompletionRequestMessageContentPartTextArgs
impl Send for ChatCompletionRequestMessageContentPartTextArgs
impl Sync for ChatCompletionRequestMessageContentPartTextArgs
impl Unpin for ChatCompletionRequestMessageContentPartTextArgs
impl UnwindSafe for ChatCompletionRequestMessageContentPartTextArgs
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