Trait nmd_core::assembler::Assembler

source ·
pub trait Assembler {
    // Required method
    fn assemble_dossier(
        dossier: &Dossier,
        configuration: &AssemblerConfiguration,
    ) -> Result<Artifact, AssemblerError>
       where Self: Sized;

    // Provided methods
    fn assemble_document(
        document: &Document,
        _configuration: &AssemblerConfiguration,
    ) -> Result<Artifact, AssemblerError>
       where Self: Sized { ... }
    fn assemble_document_standalone(
        document: &Document,
        _page_title: &String,
        _external_styles_paths: Option<&Vec<PathBuf>>,
        _external_styles: Option<&Vec<String>>,
        _toc: Option<&TableOfContents>,
        _bibliography: Option<&Bibliography>,
        configuration: &AssemblerConfiguration,
    ) -> Result<Artifact, AssemblerError>
       where Self: Sized { ... }
}

Required Methods§

source

fn assemble_dossier( dossier: &Dossier, configuration: &AssemblerConfiguration, ) -> Result<Artifact, AssemblerError>
where Self: Sized,

Assemble dossier

Provided Methods§

source

fn assemble_document( document: &Document, _configuration: &AssemblerConfiguration, ) -> Result<Artifact, AssemblerError>
where Self: Sized,

Assemble document

source

fn assemble_document_standalone( document: &Document, _page_title: &String, _external_styles_paths: Option<&Vec<PathBuf>>, _external_styles: Option<&Vec<String>>, _toc: Option<&TableOfContents>, _bibliography: Option<&Bibliography>, configuration: &AssemblerConfiguration, ) -> Result<Artifact, AssemblerError>
where Self: Sized,

Assemble a standalone document, so page_title, styles_references, toc and bibliography are needed

Implementors§