> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct PiiRedaction Config

> Canonical config document for the PII redaction component.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi`.

<pre />

Canonical config document for the PII redaction component.

## Fields

### `version: u32`

PII redaction config schema version.

### `mode: String`

Backend mode: `builtin` or `local_model`.

### `input: bool`

Whether to sanitize managed LLM request payloads.

### `output: bool`

Whether to sanitize managed LLM response payloads.

### `tool_input: bool`

Whether to sanitize managed tool request payloads.

### `tool_output: bool`

Whether to sanitize managed tool response payloads.

### `priority: i32`

Guardrail priority. Lower values run earlier.

### `codec: Option<String>`

Provider request/response codec for LLM-managed surfaces.

### `builtin: Option<BuiltinBackendConfig>`

Built-in backend settings used when `mode = "builtin"`.

### `local: Option<LocalBackendConfig>`

Local-backend settings used when `mode = "local_model"`.

### `policy: ConfigPolicy`

Component-local unsupported-config policy.

## Trait Implementations

### `impl Clone for PiiRedactionConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for PiiRedactionConfig`

<pre />

#### `fmt`

<pre />

### `impl Default for PiiRedactionConfig`

<pre />

#### `default`

<pre />

### `impl<'de> Deserialize<'de> for PiiRedactionConfig`

<pre />

#### `deserialize`

<pre />

### `impl EditorConfig for PiiRedactionConfig`

<pre />

#### `editor_schema`

<pre />

### `impl Serialize for PiiRedactionConfig`

<pre />

#### `serialize`

<pre />