pub struct OpenAiContentPart {
pub kind: String,
pub text: Option<String>,
}Expand description
Minimal Responses content part.
Fields§
§kind: StringProvider content part type.
text: Option<String>Text payload.
Trait Implementations§
Source§impl Clone for OpenAiContentPart
impl Clone for OpenAiContentPart
Source§fn clone(&self) -> OpenAiContentPart
fn clone(&self) -> OpenAiContentPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenAiContentPart
impl Debug for OpenAiContentPart
Source§impl<'de> Deserialize<'de> for OpenAiContentPart
impl<'de> Deserialize<'de> for OpenAiContentPart
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 OpenAiContentPart
impl PartialEq for OpenAiContentPart
Source§fn eq(&self, other: &OpenAiContentPart) -> bool
fn eq(&self, other: &OpenAiContentPart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenAiContentPart
impl Serialize for OpenAiContentPart
impl Eq for OpenAiContentPart
impl StructuralPartialEq for OpenAiContentPart
Auto Trait Implementations§
impl Freeze for OpenAiContentPart
impl RefUnwindSafe for OpenAiContentPart
impl Send for OpenAiContentPart
impl Sync for OpenAiContentPart
impl Unpin for OpenAiContentPart
impl UnsafeUnpin for OpenAiContentPart
impl UnwindSafe for OpenAiContentPart
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