pub struct TextPartInput {
pub text: String,
pub id: Option<String>,
pub synthetic: Option<bool>,
pub ignored: Option<bool>,
pub time: Option<TextPartInputTime>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
A text input part for the chat endpoint.
Fields§
§text: StringThe text content.
id: Option<String>Optional part identifier.
synthetic: Option<bool>Whether this input was synthetically generated.
ignored: Option<bool>Whether this input should be ignored.
time: Option<TextPartInputTime>Optional timing information.
metadata: Option<HashMap<String, Value>>Optional metadata.
Trait Implementations§
Source§impl Clone for TextPartInput
impl Clone for TextPartInput
Source§fn clone(&self) -> TextPartInput
fn clone(&self) -> TextPartInput
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 Debug for TextPartInput
impl Debug for TextPartInput
Source§impl<'de> Deserialize<'de> for TextPartInput
impl<'de> Deserialize<'de> for TextPartInput
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 TextPartInput
impl PartialEq for TextPartInput
Source§impl Serialize for TextPartInput
impl Serialize for TextPartInput
impl StructuralPartialEq for TextPartInput
Auto Trait Implementations§
impl Freeze for TextPartInput
impl RefUnwindSafe for TextPartInput
impl Send for TextPartInput
impl Sync for TextPartInput
impl Unpin for TextPartInput
impl UnwindSafe for TextPartInput
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