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§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
impl Eq for SensitiveField
Source§impl Hash for SensitiveField
impl Hash for SensitiveField
Source§impl PartialEq for SensitiveField
impl PartialEq for SensitiveField
Source§impl Serialize for SensitiveField
impl Serialize for SensitiveField
impl StructuralPartialEq for SensitiveField
Auto Trait Implementations§
impl Forget for SensitiveField
impl Freeze for SensitiveField
impl Move 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