Struct Builtin Backend Config
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct BuiltinBackendConfig {
pub preset: Option<String>,
pub action: String,
pub target_paths: Vec<String>,
pub target_path_globs: Vec<String>,
pub pattern: Option<String>,
pub detector: Option<String>,
pub replacement: Option<String>,
pub mask_char: Option<String>,
pub unmasked_prefix: Option<usize>,
pub unmasked_suffix: Option<usize>,
pub custom_mark_payload_policy: String,
pub metric_string_attribute_allowlist: BTreeMap<String, Vec<String>>,
}
Built-in redaction backend settings.
Fields
preset: Option<String>
Optional semantic sanitization preset.
action: String
Action applied to matching string leaves.
target_paths: Vec<String>
Exact RFC 6901 JSON-pointer paths to sanitize. Empty together with Self::target_path_globs means every string leaf, except that action = "remove" requires an explicit selector.
target_path_globs: Vec<String>
JSON-pointer glob paths to sanitize. A whole * segment matches one object key or array index; matching is not recursive.
pattern: Option<String>
Regex pattern used when action = "regex_replace" or action = "redact".
detector: Option<String>
Built-in detector preset used when you do not want to write a regex.
replacement: Option<String>
Replacement text used when action = "regex_replace" or action = "redact".
mask_char: Option<String>
Masking token used when action = "mask". Defaults to *.
unmasked_prefix: Option<usize>
Number of leading characters to keep when action = "mask".
unmasked_suffix: Option<usize>
Number of trailing characters to keep when action = "mask".
custom_mark_payload_policy: String
How the trajectory preset handles opaque custom-mark payloads.
metric_string_attribute_allowlist: BTreeMap<String, Vec<String>>
Exact string values that the trajectory preset may preserve for each typed metric attribute.
Trait Implementations
impl Clone for BuiltinBackendConfig
impl Clone for BuiltinBackendConfig
clone
fn clone(&self) -> BuiltinBackendConfig
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for BuiltinBackendConfig
impl Debug for BuiltinBackendConfig
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for BuiltinBackendConfig
impl Default for BuiltinBackendConfig
default
fn default() -> Self
impl<'de> Deserialize<'de> for BuiltinBackendConfig
impl<'de> Deserialize<'de> for BuiltinBackendConfig
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl EditorConfig for BuiltinBackendConfig
impl EditorConfig for BuiltinBackendConfig
editor_schema
fn editor_schema() -> &'static EditorSchema
impl Serialize for BuiltinBackendConfig
impl Serialize for BuiltinBackendConfig
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,