pub struct SensitiveField(/* private fields */);Expand description
Tags a parameter or field as containing sensitive material that audit payloads must redact.
AUTHZ-PRIVACY-2 introduces the #[sensitive] attribute and the registry
that populates this marker. AUTHZ-PRIVACY-1 lands the type so consumer
tickets and tests can wire against a stable surface — today the registry
is empty, so no redaction occurs; the type is reserved.
When the registry is populated (PRIVACY-2 / -5), serializing an
AuditRecord will replace tagged fields with the literal string
"<redacted>". The redaction path is consumer-driven (the audit-payload
serializer consults the registry); this ticket does not gate any field
of AuditRecord itself behind the marker — the record is the carrier,
not the payload-bearer.
Implementations§
Trait Implementations§
Source§impl Clone for SensitiveField
impl Clone for SensitiveField
Source§fn clone(&self) -> SensitiveField
fn clone(&self) -> SensitiveField
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 SensitiveField
impl Debug for SensitiveField
Source§impl<'de> Deserialize<'de> for SensitiveField
impl<'de> Deserialize<'de> for SensitiveField
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 Hash for SensitiveField
impl Hash for SensitiveField
Source§impl PartialEq for SensitiveField
impl PartialEq for SensitiveField
Source§fn eq(&self, other: &SensitiveField) -> bool
fn eq(&self, other: &SensitiveField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SensitiveField
impl Serialize for SensitiveField
impl Eq for SensitiveField
impl StructuralPartialEq for SensitiveField
Auto Trait Implementations§
impl Freeze for SensitiveField
impl RefUnwindSafe for SensitiveField
impl Send for SensitiveField
impl Sync for SensitiveField
impl Unpin for SensitiveField
impl UnsafeUnpin for SensitiveField
impl UnwindSafe for SensitiveField
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