pub enum EventContentPart {
OutputText {
text: Option<String>,
},
ReasoningText {
text: Option<String>,
},
Refusal {
refusal: Option<String>,
},
Other,
}Expand description
A content part carried by response.content_part.added /
response.content_part.done events.
Variants§
OutputText
A text output part.
ReasoningText
A reasoning text part.
Refusal
A refusal part.
Other
Any content part type not covered above.
Trait Implementations§
Source§impl Clone for EventContentPart
impl Clone for EventContentPart
Source§fn clone(&self) -> EventContentPart
fn clone(&self) -> EventContentPart
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 EventContentPart
impl Debug for EventContentPart
Source§impl<'de> Deserialize<'de> for EventContentPart
impl<'de> Deserialize<'de> for EventContentPart
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
Auto Trait Implementations§
impl Freeze for EventContentPart
impl RefUnwindSafe for EventContentPart
impl Send for EventContentPart
impl Sync for EventContentPart
impl Unpin for EventContentPart
impl UnsafeUnpin for EventContentPart
impl UnwindSafe for EventContentPart
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