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§
sourcefn assemble_dossier(
dossier: &Dossier,
configuration: &AssemblerConfiguration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
fn assemble_dossier(
dossier: &Dossier,
configuration: &AssemblerConfiguration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
Assemble dossier
Provided Methods§
sourcefn assemble_document(
document: &Document,
_configuration: &AssemblerConfiguration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
fn assemble_document(
document: &Document,
_configuration: &AssemblerConfiguration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
Assemble document
sourcefn 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,
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