Skip to main content

Module server

Module server 

Source
Expand description

Server codegen — opt-in Axum scaffolding for user-selected operations.

Phase 1 (this file): read-only operation index for the openapi-to-rust server list command. Later phases build on OperationIndex for selector resolution, codegen, and TOML edits.

See docs/planning/server-codegen.md for the full design.

Re-exports§

pub use selector::Resolution;
pub use selector::Selector;
pub use selector::SelectorParseError;
pub use selector::SelectorResolveError;
pub use selector::resolve;

Modules§

codegen
Server codegen — trait + typed response enums (P4).
edit
Formatting-preserving edits to the [server].operations array in a project’s openapi-to-rust.toml. Backs the server add and server remove CLI subcommands.
list
openapi-to-rust server list — read-only operation discovery.
selector
Server operation selectors.

Structs§

OperationIndex
Read-only snapshot of every operation in a spec, in the order the analyzer surfaced them. Built once per command invocation.
OperationSummary
Display-friendly subset of OperationInfo used by server list and (later) by selector resolution and server add/remove.