Skip to main content

HtmlBody

Trait HtmlBody 

Source
pub trait HtmlBody {
    // Required method
    fn html(&self) -> &str;
}
Expand description

Something holding HTML: a test response, or text.

Required Methods§

Source

fn html(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HtmlBody for String

Source§

fn html(&self) -> &str

Source§

impl HtmlBody for str

Source§

fn html(&self) -> &str

Source§

impl<T: HtmlBody + ?Sized> HtmlBody for &T

Source§

fn html(&self) -> &str

Implementors§