Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UIPlugin for Box<dyn UIPlugin>

Source§

fn path(&self) -> String

Source§

fn to_html(&self) -> String

Implementors§