UIPlugin

Trait UIPlugin 

Source
pub trait UIPlugin {
    // Required methods
    fn path(&self) -> String;
    fn to_html(&self) -> String;
}
Expand description

Trait to implement to expose a UI for the generated openapi specification

Required Methods§

Source

fn path(&self) -> String

Getter for the HTML file path

Source

fn to_html(&self) -> String

Transform the given file (defined at path) to a valid HTML String. Useful for variable replacement for example.

Trait Implementations§

Source§

impl UIPlugin for Box<dyn UIPlugin>

Source§

fn path(&self) -> String

Getter for the HTML file path
Source§

fn to_html(&self) -> String

Transform the given file (defined at path) to a valid HTML String. Useful for variable replacement for example.

Implementations on Foreign Types§

Source§

impl UIPlugin for Box<dyn UIPlugin>

Source§

fn path(&self) -> String

Source§

fn to_html(&self) -> String

Implementors§