> 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 full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Macro editor_config

> Implements `EditorConfig` for a configuration type.

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

```rust
macro_rules! editor_config {
    (
        impl $ty:ty {
            $(
                $field:ident => {
                    label: $label:literal,
                    kind: $kind:ident
                    $(, values: [$($value:literal),* $(,)?])?
                    $(, optional: $optional:literal)?
                    $(, nested: $nested:ty)?
                    $(, default: $default:ty)?
                    $(,)?
                }
            ),* $(,)?
        }
    ) => { ... };
    (@kind Boolean) => { ... };
    (@kind String) => { ... };
    (@kind Integer) => { ... };
    (@kind Float) => { ... };
    (@kind Enum) => { ... };
    (@kind StringMap) => { ... };
    (@kind Json) => { ... };
    (@kind Section) => { ... };
    (@values) => { ... };
    (@values $($value:literal),*) => { ... };
    (@optional) => { ... };
    (@optional $optional:literal) => { ... };
    (@nested) => { ... };
    (@nested $nested:ty) => { ... };
    (@default) => { ... };
    (@default $default:ty) => { ... };
}
```

Implements [`EditorConfig`](/reference/api/rust-library-reference/nemo-relay/config_editor/trait-editorconfig) for a configuration type.

This macro intentionally keeps editor metadata next to the Rust config type while avoiding proc-macro reflection. Field order is declaration order inside the macro invocation.