#[non_exhaustive]pub enum TaintScope {
Session,
Message,
}Expand description
Scope at which a taint applies. Marked #[non_exhaustive] so new
variants (e.g. Request, Pipeline, conversation-level) can be
added without breaking downstream exhaustive matches. v0 emits only
Session and Message; plugin-extracted taints (from
extensions.security.labels diffs in CmfPluginInvoker) default to
Session because cpex-core’s label monotonicity is session-semantic.
Config-side Step::Taint/Stage::Taint declares scopes explicitly.
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.
Trait Implementations§
Source§impl Clone for TaintScope
impl Clone for TaintScope
Source§fn clone(&self) -> TaintScope
fn clone(&self) -> TaintScope
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 moreimpl Copy for TaintScope
Source§impl Debug for TaintScope
impl Debug for TaintScope
Source§impl<'de> Deserialize<'de> for TaintScope
impl<'de> Deserialize<'de> for TaintScope
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 TaintScope
Source§impl Hash for TaintScope
impl Hash for TaintScope
Source§impl PartialEq for TaintScope
impl PartialEq for TaintScope
Source§impl Serialize for TaintScope
impl Serialize for TaintScope
impl StructuralPartialEq for TaintScope
Auto Trait Implementations§
impl Freeze for TaintScope
impl RefUnwindSafe for TaintScope
impl Send for TaintScope
impl Sync for TaintScope
impl Unpin for TaintScope
impl UnsafeUnpin for TaintScope
impl UnwindSafe for TaintScope
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
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<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
Compare self to
key and return true if they are equal.