pub struct MessageContentPart {
pub type_: Option<MessageContentPartType>,
pub text: Option<String>,
}Expand description
One item in a multimodal assistant response.
Fields§
§type_: Option<MessageContentPartType>Part kind. The current response schema only defines text.
text: Option<String>Text carried by this part.
Trait Implementations§
Source§impl Clone for MessageContentPart
impl Clone for MessageContentPart
Source§fn clone(&self) -> MessageContentPart
fn clone(&self) -> MessageContentPart
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 MessageContentPart
impl Debug for MessageContentPart
Source§impl<'de> Deserialize<'de> for MessageContentPart
impl<'de> Deserialize<'de> for MessageContentPart
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 Serialize for MessageContentPart
impl Serialize for MessageContentPart
Source§impl Validate for MessageContentPart
impl Validate for MessageContentPart
Source§impl<'v_a> ValidateArgs<'v_a> for MessageContentPart
impl<'v_a> ValidateArgs<'v_a> for MessageContentPart
Auto Trait Implementations§
impl Freeze for MessageContentPart
impl RefUnwindSafe for MessageContentPart
impl Send for MessageContentPart
impl Sync for MessageContentPart
impl Unpin for MessageContentPart
impl UnsafeUnpin for MessageContentPart
impl UnwindSafe for MessageContentPart
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