pub enum ContentClass {
UserText,
AssistantText,
Thinking,
ToolCalls,
ToolResults,
FilePaths,
EventData,
}Expand description
Content classes source material may belong to. Shared vocabulary between summary provenance (spec §9.3) and the compaction disclosure policy (spec §9.4).
Variants§
UserText
AssistantText
Thinking
ToolCalls
ToolResults
FilePaths
STRUCTURED path-bearing surfaces only: the file-operations record
derived from tool calls, and — conservatively — entire tool-call
argument payloads (withheld wholesale on exclusion, because paths
inside nested/positional/unrecognized argument shapes cannot be
reliably identified). Paths mentioned inside free text belong to
their text class (UserText, AssistantText, ToolResults,
EventData); excluding those classes withholds such mentions.
EventData
Implementations§
Source§impl ContentClass
impl ContentClass
Sourcepub const ALL: [ContentClass; 7]
pub const ALL: [ContentClass; 7]
Every known class, in stable order.
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Canonical snake_case name (matches the serde representation).
Sourcepub fn parse(s: &str) -> Option<ContentClass>
pub fn parse(s: &str) -> Option<ContentClass>
Parse a canonical snake_case name. Unknown names return None so
config surfaces can warn instead of silently dropping policy.
Trait Implementations§
Source§impl Clone for ContentClass
impl Clone for ContentClass
Source§fn clone(&self) -> ContentClass
fn clone(&self) -> ContentClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ContentClass
Source§impl Debug for ContentClass
impl Debug for ContentClass
Source§impl<'de> Deserialize<'de> for ContentClass
impl<'de> Deserialize<'de> for ContentClass
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ContentClass
Source§impl Hash for ContentClass
impl Hash for ContentClass
Source§impl PartialEq for ContentClass
impl PartialEq for ContentClass
Source§impl Serialize for ContentClass
impl Serialize for ContentClass
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ContentClass
Auto Trait Implementations§
impl Freeze for ContentClass
impl RefUnwindSafe for ContentClass
impl Send for ContentClass
impl Sync for ContentClass
impl Unpin for ContentClass
impl UnsafeUnpin for ContentClass
impl UnwindSafe for ContentClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.