pub struct ChatCompletionRequestMessageContentPartText {
pub text: String,
}
Expand description
Learn about text inputs.
Fields§
§text: String
The text content.
Implementations§
Source§impl ChatCompletionRequestMessageContentPartText
impl ChatCompletionRequestMessageContentPartText
Sourcepub fn builder() -> ChatCompletionRequestMessageContentPartTextBuilder<((),)>
pub fn builder() -> ChatCompletionRequestMessageContentPartTextBuilder<((),)>
Create a builder for building ChatCompletionRequestMessageContentPartText
.
On the builder, call .text(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionRequestMessageContentPartText
.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestMessageContentPartText
impl Clone for ChatCompletionRequestMessageContentPartText
Source§fn clone(&self) -> ChatCompletionRequestMessageContentPartText
fn clone(&self) -> ChatCompletionRequestMessageContentPartText
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 moreSource§impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartText
impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartText
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChatCompletionRequestMessageContentPartText
impl PartialEq for ChatCompletionRequestMessageContentPartText
Source§fn eq(&self, other: &ChatCompletionRequestMessageContentPartText) -> bool
fn eq(&self, other: &ChatCompletionRequestMessageContentPartText) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestMessageContentPartText
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestMessageContentPartText
impl RefUnwindSafe for ChatCompletionRequestMessageContentPartText
impl Send for ChatCompletionRequestMessageContentPartText
impl Sync for ChatCompletionRequestMessageContentPartText
impl Unpin for ChatCompletionRequestMessageContentPartText
impl UnwindSafe for ChatCompletionRequestMessageContentPartText
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