pub struct Document {
pub openapi: String,
pub info: Info,
pub servers: Vec<Server>,
pub tags: Vec<Tag>,
pub paths: IndexMap<String, PathItem>,
pub components: Components,
}Expand description
An OpenAPI document (the root object).
Fields§
§openapi: StringThe OpenAPI version.
info: InfoThe API’s title and version.
servers: Vec<Server>The server URLs; empty leaves clients with the URL of the document.
The tags, in the order operations first use them.
paths: IndexMap<String, PathItem>The paths, in the order they were added.
components: ComponentsThe component schemas and security schemes.
Trait Implementations§
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Forget for Document
impl Freeze for Document
impl Move for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin 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