pub trait DocxTemplate {
// Required methods
fn template_path(&self) -> &Path;
fn replacements(&self) -> Vec<(&str, &str)>;
}Expand description
Trait implemented by all generated template structs.
You won’t typically call these methods directly — use the generated
save() and to_bytes() methods on the struct instead.
Required Methods§
Sourcefn template_path(&self) -> &Path
fn template_path(&self) -> &Path
Returns the path to the original .docx template file.
Sourcefn replacements(&self) -> Vec<(&str, &str)>
fn replacements(&self) -> Vec<(&str, &str)>
Returns placeholder/value pairs for substitution.