pub struct ScrubOptions {
pub keep_player_names: bool,
}Expand description
Options controlling which classes of data are redacted by scrub_raw_log_with.
All fields default to false, which reproduces the same behavior as
scrub_raw_log (maximum redaction).
§Examples
use manasight_parser::{ScrubOptions, scrub_raw_log_with};
// Preserve player names while still redacting everything else.
let opts = ScrubOptions { keep_player_names: true };
let raw = r#"Token: secret123 and "screenName": "Player#999""#;
let clean = scrub_raw_log_with(raw, &opts);
assert!(clean.contains("Token: <redacted>"));
assert!(clean.contains(r#""Player#999""#));Fields§
§keep_player_names: boolWhen true, the screenName and playerName JSON fields are not
redacted. All other patterns (tokens, bearer tokens, paths, clientId,
userId, sessionId, email addresses, IP addresses, hardware
fingerprints) still apply.
Use this when the upload destination should retain both players’ handles for replay or analytics attribution (AC-OPP-1).
Trait Implementations§
Source§impl Clone for ScrubOptions
impl Clone for ScrubOptions
Source§fn clone(&self) -> ScrubOptions
fn clone(&self) -> ScrubOptions
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 ScrubOptions
impl Debug for ScrubOptions
Source§impl Default for ScrubOptions
impl Default for ScrubOptions
Source§fn default() -> ScrubOptions
fn default() -> ScrubOptions
Returns the “default value” for a type. Read more
impl Eq for ScrubOptions
Source§impl PartialEq for ScrubOptions
impl PartialEq for ScrubOptions
Source§fn eq(&self, other: &ScrubOptions) -> bool
fn eq(&self, other: &ScrubOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScrubOptions
Auto Trait Implementations§
impl Freeze for ScrubOptions
impl RefUnwindSafe for ScrubOptions
impl Send for ScrubOptions
impl Sync for ScrubOptions
impl Unpin for ScrubOptions
impl UnsafeUnpin for ScrubOptions
impl UnwindSafe for ScrubOptions
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