#[repr(u8)]pub enum TrustTag {
Unspecified = 0,
TrustedUser = 1,
QuarantinedContent = 2,
}Expand description
Trust/provenance capability tag attached to every conversation event at ingress.
The on-disk encoding is the single discriminant byte (see
TrustTag::as_u8); the values are stable and mirrored by the
polychrome.events.v1.TrustTag proto enum so the wire/forensics layer
shares one vocabulary.
Variants§
Unspecified = 0
Not yet classified — a control/marker event with no external content provenance (turn markers, usage, model scaffolding). Neither a trusted principal message nor untrusted content.
TrustedUser = 1
An authenticated principal’s own message (the user themself).
QuarantinedContent = 2
Tool output, fetched web content, or otherwise untrusted inbound content. Its mere presence in the log satisfies the trifecta’s untrusted-content-in-context leg.
Implementations§
Source§impl TrustTag
impl TrustTag
Sourcepub const fn from_u8(byte: u8) -> Option<TrustTag>
pub const fn from_u8(byte: u8) -> Option<TrustTag>
Recover a TrustTag from its discriminant byte, or None if the
byte names no known tag (a corrupt or tampered log entry).
Sourcepub const fn is_quarantined(self) -> bool
pub const fn is_quarantined(self) -> bool
Whether this tag marks untrusted content (the trifecta’s untrusted-content-in-context leg).
Trait Implementations§
impl Copy for TrustTag
impl Eq for TrustTag
impl StructuralPartialEq for TrustTag
Auto Trait Implementations§
impl Freeze for TrustTag
impl RefUnwindSafe for TrustTag
impl Send for TrustTag
impl Sync for TrustTag
impl Unpin for TrustTag
impl UnsafeUnpin for TrustTag
impl UnwindSafe for TrustTag
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more