pub struct OpenApiDocument {
pub openapi: String,
pub info: OpenApiInfo,
pub servers: Option<Vec<OpenApiServer>>,
pub paths: IndexMap<String, IndexMap<String, OpenApiOperation>>,
pub components: Option<OpenApiComponents>,
}Available on crate feature
openapi only.Expand description
OpenAPI 3.0 document.
Fields§
§openapi: String§info: OpenApiInfo§servers: Option<Vec<OpenApiServer>>§paths: IndexMap<String, IndexMap<String, OpenApiOperation>>§components: Option<OpenApiComponents>Implementations§
Trait Implementations§
Source§impl Clone for OpenApiDocument
impl Clone for OpenApiDocument
Source§fn clone(&self) -> OpenApiDocument
fn clone(&self) -> OpenApiDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenApiDocument
impl Debug for OpenApiDocument
Auto Trait Implementations§
impl Freeze for OpenApiDocument
impl RefUnwindSafe for OpenApiDocument
impl Send for OpenApiDocument
impl Sync for OpenApiDocument
impl Unpin for OpenApiDocument
impl UnsafeUnpin for OpenApiDocument
impl UnwindSafe for OpenApiDocument
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