pub struct MarkdownExporter;Expand description
Markdown exporter for decisions and knowledge articles
Implementations§
Source§impl MarkdownExporter
impl MarkdownExporter
Sourcepub fn new() -> MarkdownExporter
pub fn new() -> MarkdownExporter
Create a new Markdown exporter instance
Sourcepub fn export_decision(
&self,
decision: &Decision,
) -> Result<String, ExportError>
pub fn export_decision( &self, decision: &Decision, ) -> Result<String, ExportError>
Sourcepub fn export_knowledge(
&self,
article: &KnowledgeArticle,
) -> Result<String, ExportError>
pub fn export_knowledge( &self, article: &KnowledgeArticle, ) -> Result<String, ExportError>
Sourcepub fn export_decisions_to_directory(
&self,
decisions: &[Decision],
dir_path: &Path,
) -> Result<usize, ExportError>
pub fn export_decisions_to_directory( &self, decisions: &[Decision], dir_path: &Path, ) -> Result<usize, ExportError>
Sourcepub fn export_knowledge_to_directory(
&self,
articles: &[KnowledgeArticle],
dir_path: &Path,
) -> Result<usize, ExportError>
pub fn export_knowledge_to_directory( &self, articles: &[KnowledgeArticle], dir_path: &Path, ) -> Result<usize, ExportError>
Sourcepub fn export_knowledge_by_domain(
&self,
articles: &[KnowledgeArticle],
base_dir: &Path,
) -> Result<usize, ExportError>
pub fn export_knowledge_by_domain( &self, articles: &[KnowledgeArticle], base_dir: &Path, ) -> Result<usize, ExportError>
Sourcepub fn generate_decisions_index(&self, decisions: &[Decision]) -> String
pub fn generate_decisions_index(&self, decisions: &[Decision]) -> String
Generate a decisions index page in Markdown
Creates a summary page listing all decisions with links.
Sourcepub fn generate_knowledge_index(&self, articles: &[KnowledgeArticle]) -> String
pub fn generate_knowledge_index(&self, articles: &[KnowledgeArticle]) -> String
Generate a knowledge index page in Markdown
Creates a summary page listing all articles with links.
Trait Implementations§
Source§impl Default for MarkdownExporter
impl Default for MarkdownExporter
Source§fn default() -> MarkdownExporter
fn default() -> MarkdownExporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MarkdownExporter
impl RefUnwindSafe for MarkdownExporter
impl Send for MarkdownExporter
impl Sync for MarkdownExporter
impl Unpin for MarkdownExporter
impl UnwindSafe for MarkdownExporter
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