[][src]Struct super_analyzer_core::results::report::handlebars::Report

pub struct Report {
    handler: Handlebars,
    package: String,
}

Handlebars report generator.

Fields

handler: Handlebars

Handlebars template structure.

package: String

Package name.

Methods

impl Report[src]

pub fn from_path<P: AsRef<Path>, S: Into<String>>(
    template_path: P,
    package: S
) -> Result<Self, Error>
[src]

Creates a new handlebars report generator.

fn load_templates<P: AsRef<Path>>(template_path: P) -> Result<Handlebars, Error>[src]

Loads templates from the given path.

fn generate_code_html_files(
    &self,
    config: &Config,
    results: &Results
) -> Result<(), Error>
[src]

Generates the HTML files for the code.

fn generate_code_html_folder<P: AsRef<Path>>(
    &self,
    path: P,
    config: &Config,
    results: &Results
) -> Result<Vec<Value>, Error>
[src]

Generates a folder with HTML files with the source code of the application.

fn generate_code_html_for<P: AsRef<Path>, S: AsRef<str>>(
    &self,
    path: P,
    config: &Config,
    results: &Results,
    cli_package_name: S
) -> Result<(), Error>
[src]

Generates an HTML file with source code for the given path.

Trait Implementations

impl Generator for Report[src]

Auto Trait Implementations

impl Send for Report

impl Sync for Report

impl Unpin for Report

impl !UnwindSafe for Report

impl !RefUnwindSafe for Report

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self