pub enum DataDestination {
Storage,
Stream,
Log,
AuditExport,
}Expand description
Data destination - where the data is going
Variants§
Storage
Storage (PostgreSQL, Blob Storage, EventStore) Treatment: Encrypt sensitive fields
Stream
Streaming to frontend (SSE, gRPC) Treatment: Mask PII, never send encrypted or raw
Log
Structured logs (telemetry, observability) Treatment: Hash or mask, never raw
AuditExport
Audit export (JSON, PDF) Treatment: Decrypt for internal, mask for external
Implementations§
Source§impl DataDestination
impl DataDestination
Sourcepub fn is_frontend_visible(&self) -> bool
pub fn is_frontend_visible(&self) -> bool
Returns true if this destination is frontend-visible
Sourcepub fn requires_encryption(&self) -> bool
pub fn requires_encryption(&self) -> bool
Returns true if this destination requires encryption
Trait Implementations§
Source§impl Clone for DataDestination
impl Clone for DataDestination
Source§fn clone(&self) -> DataDestination
fn clone(&self) -> DataDestination
Returns a duplicate of the value. Read more
1.0.0 · 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 DataDestination
impl Debug for DataDestination
Source§impl PartialEq for DataDestination
impl PartialEq for DataDestination
impl Copy for DataDestination
impl Eq for DataDestination
impl StructuralPartialEq for DataDestination
Auto Trait Implementations§
impl Freeze for DataDestination
impl RefUnwindSafe for DataDestination
impl Send for DataDestination
impl Sync for DataDestination
impl Unpin for DataDestination
impl UnsafeUnpin for DataDestination
impl UnwindSafe for DataDestination
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
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§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
Compare self to
key and return true if they are equal.