pub struct Document {
pub openapi: OpenApiVersion,
pub info: InfoObject,
pub paths: PathsObject,
pub components: Option<ComponentsObject>,
}
Expand description
OpenAPI Object https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#openapi-object
Fields§
§openapi: OpenApiVersion
REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses.
info: InfoObject
REQUIRED. Provides metadata about the API.
paths: PathsObject
REQUIRED. The available paths and operations for the API.
components: Option<ComponentsObject>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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