pub struct OpenApiSpec {
pub openapi: String,
pub info: OpenApiInfo,
pub paths: BTreeMap<String, BTreeMap<String, OpenApiOperation>>,
}Expand description
Minimal OpenAPI 3.1.0 spec builder that collects routes from plugins.
Produces a JSON document compatible with the OpenAPI 3.1.0 specification. This is intentionally lightweight — it captures paths and methods from registered plugins without requiring schema derives on every type.
Fields§
§openapi: String§info: OpenApiInfo§paths: BTreeMap<String, BTreeMap<String, OpenApiOperation>>Implementations§
Trait Implementations§
Source§impl Debug for OpenApiSpec
impl Debug for OpenApiSpec
Auto Trait Implementations§
impl Freeze for OpenApiSpec
impl RefUnwindSafe for OpenApiSpec
impl Send for OpenApiSpec
impl Sync for OpenApiSpec
impl Unpin for OpenApiSpec
impl UnsafeUnpin for OpenApiSpec
impl UnwindSafe for OpenApiSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more