pub struct MobileRedactionEngine { /* private fields */ }Expand description
Scrubs mobile-specific device identifiers and location data from
SecurityEvent labels.
Pattern matching order:
- IMEI — exactly 15 digits
- MAC address —
XX:XX:XX:XX:XX:XXorXX-XX-XX-XX-XX-XX - GPS coordinates — decimal latitude/longitude pair
- UUID-format device IDs (IDFV, GAID, IDFA) — only when the label key suggests a device or advertising identifier
Implementations§
Source§impl MobileRedactionEngine
impl MobileRedactionEngine
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new MobileRedactionEngine with default patterns.
Sourcepub fn scrub_event(&self, event: SecurityEvent) -> SecurityEvent
pub fn scrub_event(&self, event: SecurityEvent) -> SecurityEvent
Processes a SecurityEvent, scrubbing mobile device identifiers and
location coordinates from label values.
Trait Implementations§
Source§impl Clone for MobileRedactionEngine
impl Clone for MobileRedactionEngine
Source§fn clone(&self) -> MobileRedactionEngine
fn clone(&self) -> MobileRedactionEngine
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 MobileRedactionEngine
impl Debug for MobileRedactionEngine
Auto Trait Implementations§
impl Freeze for MobileRedactionEngine
impl RefUnwindSafe for MobileRedactionEngine
impl Send for MobileRedactionEngine
impl Sync for MobileRedactionEngine
impl Unpin for MobileRedactionEngine
impl UnsafeUnpin for MobileRedactionEngine
impl UnwindSafe for MobileRedactionEngine
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