Skip to main content

Module openapi

Module openapi 

Source
Expand description

Build-generated OpenAPI metadata.

This module is generated from API/openapi.yaml at compile time. It gives the Rust crate a direct dependency on the same API contract file used by the other SDKs, while leaving room to expand into generated request/response clients.

Structs§

OpenApiOperation
A single method/path operation parsed from the OpenAPI spec’s paths: section.

Constants§

DEFAULT_SERVER_URL
The API server base URL declared in API/openapi.yaml’s servers: section, or the production DriveThruRPG API URL if the spec has no servers: entry.
OPENAPI_SPEC_BYTES
The byte length of API/openapi.yaml at build time.
OPERATIONS
Every method/path operation declared under API/openapi.yaml’s paths: section.