pub struct OpenApi {
pub openapi: &'static str,
pub info: Info,
pub paths: BTreeMap<String, PathItem>,
pub components: Components,
}Expand description
Root document.
Fields§
§openapi: &'static strAlways OPENAPI_VERSION.
info: InfoAPI metadata.
paths: BTreeMap<String, PathItem>Operations grouped by path template.
components: ComponentsReusable components.
Implementations§
Trait Implementations§
impl StructuralPartialEq for OpenApi
Auto Trait Implementations§
impl Freeze for OpenApi
impl RefUnwindSafe for OpenApi
impl Send for OpenApi
impl Sync for OpenApi
impl Unpin for OpenApi
impl UnsafeUnpin for OpenApi
impl UnwindSafe for OpenApi
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