[][src]Struct opg::models::Opg

pub struct Opg {
    pub openapi: OpenApiVersion,
    pub info: Info,
    pub tags: BTreeMap<String, Tag>,
    pub servers: Vec<Server>,
    pub paths: Vec<(Path, PathValue)>,
    pub components: Components,
}

OpenAPI Object

specification

Fields

openapi: OpenApiVersion

Semantic version number of the OpenAPI Specification version

info: Info

Provides metadata about the API

tags: BTreeMap<String, Tag>

A list of tags used by the specification with additional metadata

servers: Vec<Server>

An array of Server Objects, which provide connectivity information to a target server

paths: Vec<(Path, PathValue)>

The available paths and operations for the API

components: Components

An element to hold various schemas for the specification

Trait Implementations

impl Clone for Opg[src]

impl Debug for Opg[src]

impl Default for Opg[src]

impl Serialize for Opg[src]

Auto Trait Implementations

impl RefUnwindSafe for Opg

impl Send for Opg

impl Sync for Opg

impl Unpin for Opg

impl UnwindSafe for Opg

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.