pub struct ChatCompletionRequestMessageContentPartText {
pub text: String,
pub _type: String,
}
Expand description
§on openapi.yaml
ChatCompletionRequestMessageContentPartText:
type: object
title: Text content part
description: |
Learn about [text inputs](/docs/guides/text-generation).
properties:
type:
type: string
enum:
- text
description: The type of the content part.
x-stainless-const: true
text:
type: string
description: The text content.
required:
- type
- text
Fields§
§text: String
The text content.
_type: String
The type of the content part.
Trait Implementations§
Source§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