pub struct BrandedMarkdownExporter { /* private fields */ }Expand description
Branded Markdown exporter with customizable branding
Extends the standard MarkdownExporter with branding options like logo, header, footer, and company information.
Implementations§
Source§impl BrandedMarkdownExporter
impl BrandedMarkdownExporter
Sourcepub fn new() -> BrandedMarkdownExporter
pub fn new() -> BrandedMarkdownExporter
Create a new branded Markdown exporter with default branding
Sourcepub fn with_branding(
branding: MarkdownBrandingConfig,
) -> BrandedMarkdownExporter
pub fn with_branding( branding: MarkdownBrandingConfig, ) -> BrandedMarkdownExporter
Create a new branded Markdown exporter with custom branding
Sourcepub fn set_branding(&mut self, branding: MarkdownBrandingConfig)
pub fn set_branding(&mut self, branding: MarkdownBrandingConfig)
Update branding configuration
Sourcepub fn branding(&self) -> &MarkdownBrandingConfig
pub fn branding(&self) -> &MarkdownBrandingConfig
Get current branding configuration
Sourcepub fn export_decision(
&self,
decision: &Decision,
) -> Result<String, ExportError>
pub fn export_decision( &self, decision: &Decision, ) -> Result<String, ExportError>
Export a decision to branded Markdown format
Sourcepub fn export_knowledge(
&self,
article: &KnowledgeArticle,
) -> Result<String, ExportError>
pub fn export_knowledge( &self, article: &KnowledgeArticle, ) -> Result<String, ExportError>
Export a knowledge article to branded Markdown format
Sourcepub fn export_with_branding(&self, title: &str, content: &str) -> String
pub fn export_with_branding(&self, title: &str, content: &str) -> String
Export raw markdown content with branding
Sourcepub fn generate_decisions_index(&self, decisions: &[Decision]) -> String
pub fn generate_decisions_index(&self, decisions: &[Decision]) -> String
Generate a branded decisions index
Sourcepub fn generate_knowledge_index(&self, articles: &[KnowledgeArticle]) -> String
pub fn generate_knowledge_index(&self, articles: &[KnowledgeArticle]) -> String
Generate a branded knowledge index
Trait Implementations§
Source§impl Default for BrandedMarkdownExporter
impl Default for BrandedMarkdownExporter
Source§fn default() -> BrandedMarkdownExporter
fn default() -> BrandedMarkdownExporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BrandedMarkdownExporter
impl RefUnwindSafe for BrandedMarkdownExporter
impl Send for BrandedMarkdownExporter
impl Sync for BrandedMarkdownExporter
impl Unpin for BrandedMarkdownExporter
impl UnwindSafe for BrandedMarkdownExporter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more