#[non_exhaustive]pub enum ContentCategory {
Primary,
Secondary,
}Expand description
Distinguishes primary from secondary content in streaming responses.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Primary
Actual response content: text, structured data.
Secondary
Intermediate: tool calls, reasoning, usage metrics.
Trait Implementations§
Source§impl Clone for ContentCategory
impl Clone for ContentCategory
Source§fn clone(&self) -> ContentCategory
fn clone(&self) -> ContentCategory
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 ContentCategory
impl Debug for ContentCategory
Source§impl<'de> Deserialize<'de> for ContentCategory
impl<'de> Deserialize<'de> for ContentCategory
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 ContentCategory
impl PartialEq for ContentCategory
Source§impl Serialize for ContentCategory
impl Serialize for ContentCategory
impl Copy for ContentCategory
impl Eq for ContentCategory
impl StructuralPartialEq for ContentCategory
Auto Trait Implementations§
impl Freeze for ContentCategory
impl RefUnwindSafe for ContentCategory
impl Send for ContentCategory
impl Sync for ContentCategory
impl Unpin for ContentCategory
impl UnsafeUnpin for ContentCategory
impl UnwindSafe for ContentCategory
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