Skip to main content

Crate vespera

Crate vespera 

Source
Expand description

Vespera - OpenAPI generation for Rust web frameworks

This crate provides macros and utilities for generating OpenAPI documentation from your route definitions.

Re-exports§

pub use serde_json;
pub use tower_layer;
pub use tower_service;

Modules§

axum
axum_extra
openapi
route
schema

Macros§

export_app
Export a vespera app as a reusable component.
schema
Generate an OpenAPI Schema from a type with optional field filtering.
schema_type
Generate a new struct type derived from an existing type with field filtering.
vespera

Structs§

OpenApi
OpenAPI document (root structure)
VesperaRouter
A router wrapper that defers merging until with_state() is called.

Attribute Macros§

route
route attribute macro

Derive Macros§

Schema
Derive macro for Schema