Struct openapi::Spec [] [src]

pub struct Spec {
    pub swagger: String,
    pub info: Info,
    pub paths: BTreeMap<String, Operations>,
    pub definitions: BTreeMap<String, Schema>,
    pub schemes: Option<Vec<String>>,
    pub host: Option<String>,
    pub base_path: Option<String>,
    pub consumes: Option<Vec<String>>,
    pub produces: Option<Vec<String>>,
    pub parameters: Option<BTreeMap<String, Parameter>>,
    pub responses: Option<BTreeMap<String, Response>>,
    pub security_definitions: Option<BTreeMap<String, Security>>,
    pub tags: Option<Vec<Tag>>,

top level document


version string

Trait Implementations

impl Debug for Spec

Formats the value using the given formatter.

impl PartialEq for Spec

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.