pub struct MessageInputContentChunksInner {
pub type: Option<Type>,
pub text: String,
pub image_url: Box<ImageUrl>,
pub tool: Box<Tool1>,
pub file_id: String,
pub file_name: Option<String>,
pub file_type: Option<String>,
pub document_url: String,
pub document_name: Option<String>,
pub thinking: Vec<ThinkingInner>,
pub closed: Option<bool>,
}Fields§
§type: Option<Type>§text: String§image_url: Box<ImageUrl>§tool: Box<Tool1>§file_id: String§file_name: Option<String>§file_type: Option<String>§document_url: String§document_name: Option<String>§thinking: Vec<ThinkingInner>§closed: Option<bool>Whether the thinking chunk is closed or not. Currently only used for prefixing.
Implementations§
Source§impl MessageInputContentChunksInner
impl MessageInputContentChunksInner
pub fn new( text: String, image_url: ImageUrl, tool: Tool1, file_id: String, document_url: String, thinking: Vec<ThinkingInner>, ) -> MessageInputContentChunksInner
Trait Implementations§
Source§impl Clone for MessageInputContentChunksInner
impl Clone for MessageInputContentChunksInner
Source§fn clone(&self) -> MessageInputContentChunksInner
fn clone(&self) -> MessageInputContentChunksInner
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 Default for MessageInputContentChunksInner
impl Default for MessageInputContentChunksInner
Source§fn default() -> MessageInputContentChunksInner
fn default() -> MessageInputContentChunksInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageInputContentChunksInner
impl<'de> Deserialize<'de> for MessageInputContentChunksInner
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 MessageInputContentChunksInner
impl PartialEq for MessageInputContentChunksInner
Source§fn eq(&self, other: &MessageInputContentChunksInner) -> bool
fn eq(&self, other: &MessageInputContentChunksInner) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageInputContentChunksInner
Auto Trait Implementations§
impl Freeze for MessageInputContentChunksInner
impl RefUnwindSafe for MessageInputContentChunksInner
impl Send for MessageInputContentChunksInner
impl Sync for MessageInputContentChunksInner
impl Unpin for MessageInputContentChunksInner
impl UnsafeUnpin for MessageInputContentChunksInner
impl UnwindSafe for MessageInputContentChunksInner
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