Trait RefResolve

Source
pub trait RefResolve<'d>: Sized {
    // Required method
    fn resolve(api: &'d OpenAPI, link: &'d str) -> Option<Self>;
}

Required Methods§

Source

fn resolve(api: &'d OpenAPI, link: &'d str) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> RefResolve<'a> for &'a Parameter

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Source§

impl<'a> RefResolve<'a> for &'a SecurityScheme

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Source§

impl<'a> RefResolve<'a> for &'a Header

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Source§

impl<'a> RefResolve<'a> for &'a PathItem

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Source§

impl<'a> RefResolve<'a> for &'a RequestBody

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Source§

impl<'a> RefResolve<'a> for &'a Response

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Source§

impl<'a> RefResolve<'a> for &'a Schema

Source§

fn resolve(api: &'a OpenAPI, link: &'a str) -> Option<Self>

Implementors§