Struct oapi::OApiDocument[][src]

pub struct OApiDocument { /* fields omitted */ }

Implementations

impl OApiDocument[src]

pub fn openapi(&self) -> &Version[src]

The OAPI version used. Needs to be 3^

pub fn info(&self) -> &OApiInfo[src]

Info about the current document

pub fn servers(&self) -> &Option<Vec<OApiServer>>[src]

List of servers used in this document

pub fn paths(&self) -> &HashMap<String, OApiPathItem>[src]

List of paths this documents defines.

pub fn components(&self) -> &Option<OApiComponents>[src]

An optional object containing components re-used across the document

pub fn security(&self) -> &HashMap<String, SparseSelector<OApiSecurityScheme>>[src]

The security used for this API

pub fn tags(&self) -> &Option<Vec<OApiTag>>[src]

Tags used to categorize the operations of this document

pub fn external_docs(&self) -> &Option<OApiExternalDocumentation>[src]

Link to some external documentation, if any

impl OApiDocument[src]

pub fn get_operation_id(&self, opid_searched: &str) -> Option<&OApiOperation>[src]

Get an operation providing its Id

Trait Implementations

impl Clone for OApiDocument[src]

impl Debug for OApiDocument[src]

impl<'de> Deserialize<'de> for OApiDocument[src]

impl OApiCheckTrait for OApiDocument[src]

impl OApiExtensionExtractor for OApiDocument[src]

impl PartialEq<OApiDocument> for OApiDocument[src]

impl Serialize for OApiDocument[src]

impl Sparsable for OApiDocument[src]

impl StructuralPartialEq for OApiDocument[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,