pub struct RedactionPolicy {
pub policy_id: String,
pub policy_version: u16,
pub content: ContentRedaction,
pub raw_event_payloads: RawEventPayloadPolicy,
}Expand description
Policy recorded on every context pack.
Fields§
§policy_id: StringStable policy identifier for audit/replay.
policy_version: u16Policy version recorded with the pack.
content: ContentRedactionPack body content representation.
raw_event_payloads: RawEventPayloadPolicyRaw event payload handling.
Implementations§
Source§impl RedactionPolicy
impl RedactionPolicy
Sourcepub fn external_default() -> Self
pub fn external_default() -> Self
Default external policy from BUILD_SPEC §2.2: redacted/abstracted, no raw events.
Sourcepub fn operator_with_raw_payload_opt_in() -> Self
pub fn operator_with_raw_payload_opt_in() -> Self
Operator policy after an explicit raw-payload opt-in.
Trait Implementations§
Source§impl Clone for RedactionPolicy
impl Clone for RedactionPolicy
Source§fn clone(&self) -> RedactionPolicy
fn clone(&self) -> RedactionPolicy
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 RedactionPolicy
impl Debug for RedactionPolicy
Source§impl Default for RedactionPolicy
impl Default for RedactionPolicy
Source§impl<'de> Deserialize<'de> for RedactionPolicy
impl<'de> Deserialize<'de> for RedactionPolicy
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 RedactionPolicy
impl PartialEq for RedactionPolicy
Source§fn eq(&self, other: &RedactionPolicy) -> bool
fn eq(&self, other: &RedactionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RedactionPolicy
impl Serialize for RedactionPolicy
impl Eq for RedactionPolicy
impl StructuralPartialEq for RedactionPolicy
Auto Trait Implementations§
impl Freeze for RedactionPolicy
impl RefUnwindSafe for RedactionPolicy
impl Send for RedactionPolicy
impl Sync for RedactionPolicy
impl Unpin for RedactionPolicy
impl UnsafeUnpin for RedactionPolicy
impl UnwindSafe for RedactionPolicy
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