pub struct ContextRedactionState {
pub status: ContextRedactionStatus,
pub redaction_refs: Vec<String>,
pub blocks_critical_premise: Option<bool>,
}Expand description
Redaction state block on a context envelope.
The blocks_critical_premise field is intentionally accepted because
some pai-axiom fixtures emit it as a redaction-policy extension. It is
not authoritative on the Cortex receiver — Cortex consumes
Self::status and Self::redaction_refs.
Fields§
§status: ContextRedactionStatusRedaction status value.
redaction_refs: Vec<String>Redaction references.
blocks_critical_premise: Option<bool>Optional extension marker (some pai-axiom fixtures emit this).
Trait Implementations§
Source§impl Clone for ContextRedactionState
impl Clone for ContextRedactionState
Source§fn clone(&self) -> ContextRedactionState
fn clone(&self) -> ContextRedactionState
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 moreSource§impl Debug for ContextRedactionState
impl Debug for ContextRedactionState
Source§impl<'de> Deserialize<'de> for ContextRedactionState
impl<'de> Deserialize<'de> for ContextRedactionState
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 ContextRedactionState
impl PartialEq for ContextRedactionState
Source§fn eq(&self, other: &ContextRedactionState) -> bool
fn eq(&self, other: &ContextRedactionState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextRedactionState
impl Serialize for ContextRedactionState
impl Eq for ContextRedactionState
impl StructuralPartialEq for ContextRedactionState
Auto Trait Implementations§
impl Freeze for ContextRedactionState
impl RefUnwindSafe for ContextRedactionState
impl Send for ContextRedactionState
impl Sync for ContextRedactionState
impl Unpin for ContextRedactionState
impl UnsafeUnpin for ContextRedactionState
impl UnwindSafe for ContextRedactionState
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