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
Source§impl Serialize for OpenApiSpec
impl Serialize for OpenApiSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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