#[non_exhaustive]pub enum ContentCategory {
TokenUsage,
ConversationText,
ToolContent,
Images,
}Expand description
A category of captured content the content policy can omit.
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.
TokenUsage
Token counters; when omitted every counter is zero.
ConversationText
Text of non-tool conversation entries; when omitted those entries keep
their role and item_id with empty text.
ToolContent
Tool arguments and results; when omitted tool entries keep their
call_id, name, and item_id with empty text.
Images
Image attachments; when omitted no attachment is carried.
Trait Implementations§
Source§impl Clone for ContentCategory
impl Clone for ContentCategory
impl Copy for ContentCategory
Source§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
impl Eq for ContentCategory
Source§impl PartialEq for ContentCategory
impl PartialEq for ContentCategory
Source§impl Serialize for ContentCategory
impl Serialize for ContentCategory
impl StructuralPartialEq for ContentCategory
Auto Trait Implementations§
impl Forget for ContentCategory
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