TitlePlugin

Trait TitlePlugin 

Source
pub trait TitlePlugin {
    // Required methods
    fn name(&self) -> &'static str;
    fn check(&self, config: &PluginConfig, url: &Url) -> bool;
    fn evaluate(&self, rtd: &Rtd, url: &Url) -> Result<String, Error>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Get the name of the plugin

Source

fn check(&self, config: &PluginConfig, url: &Url) -> bool

Check to see if the token is a viable candidate for running the plugin

Source

fn evaluate(&self, rtd: &Rtd, url: &Url) -> Result<String, Error>

Run the plugin to get a title

Implementors§