Trait Assembler

Source
pub trait Assembler:
    Debug
    + Sync
    + Send {
    // Required methods
    fn assemble_dossier(
        &self,
        compiled_documents: &Vec<CompilationOutcome>,
        compiled_toc: Option<&CompilationOutcome>,
        compiled_bib: Option<&CompilationOutcome>,
        dossier_configuration: &DossierConfiguration,
        configuration: &AssemblerConfiguration,
    ) -> Result<String, AssemblerError>;
    fn assemble_document_standalone(
        &self,
        page_title: &str,
        complied_document: &CompilationOutcome,
        compiled_toc: Option<&CompilationOutcome>,
        compiled_bib: Option<&CompilationOutcome>,
        configuration: &AssemblerConfiguration,
    ) -> Result<String, AssemblerError>;
    fn assemble_bundle(
        &self,
        compiled_document: &Vec<CompilationOutcome>,
        compiled_chapters: &Vec<CompilationOutcome>,
        configuration: &AssemblerConfiguration,
    ) -> Result<String, AssemblerError>;
    fn assemble_chapter(
        &self,
        chapter_tags: &Vec<ChapterTag>,
        compiled_heading: &CompilationOutcome,
        compiled_paragraphs: &Vec<CompilationOutcome>,
        configuration: &AssemblerConfiguration,
    ) -> Result<String, AssemblerError>;
}

Required Methods§

Source

fn assemble_dossier( &self, compiled_documents: &Vec<CompilationOutcome>, compiled_toc: Option<&CompilationOutcome>, compiled_bib: Option<&CompilationOutcome>, dossier_configuration: &DossierConfiguration, configuration: &AssemblerConfiguration, ) -> Result<String, AssemblerError>

Assemble dossier

Source

fn assemble_document_standalone( &self, page_title: &str, complied_document: &CompilationOutcome, compiled_toc: Option<&CompilationOutcome>, compiled_bib: Option<&CompilationOutcome>, configuration: &AssemblerConfiguration, ) -> Result<String, AssemblerError>

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

Source

fn assemble_bundle( &self, compiled_document: &Vec<CompilationOutcome>, compiled_chapters: &Vec<CompilationOutcome>, configuration: &AssemblerConfiguration, ) -> Result<String, AssemblerError>

Source

fn assemble_chapter( &self, chapter_tags: &Vec<ChapterTag>, compiled_heading: &CompilationOutcome, compiled_paragraphs: &Vec<CompilationOutcome>, configuration: &AssemblerConfiguration, ) -> Result<String, AssemblerError>

Implementors§