scouter_macro/lib.rs
1pub mod error;
2
3#[macro_export]
4macro_rules! impl_mask_entity_id {
5 ($trait_path:path => $($record_type:ty),+ $(,)?) => {
6 $(
7 impl $trait_path for $record_type {
8 /// Masks sensitive data by removing entity_id
9 fn mask_sensitive_data(&mut self) {
10 self.entity_id = -1;
11 }
12 }
13 )+
14 };
15}