pub struct ExportEngine { /* private fields */ }
Expand description
Export engine for handling session exports
Implementations§
Source§impl ExportEngine
impl ExportEngine
Sourcepub fn with_config(config: ExportConfig) -> Self
pub fn with_config(config: ExportConfig) -> Self
Create a new export engine with configuration
Sourcepub async fn export_session(
&mut self,
session_id: &str,
session_metadata: Option<&SessionMetadata>,
thoughts: &[ThoughtData],
stats: Option<&ThinkingStats>,
progress: Option<&ThinkingProgress>,
branches: Option<&HashMap<String, Vec<ThoughtData>>>,
analytics: Option<&Value>,
_options: ExportOptions,
) -> Result<PathBuf, Box<dyn Error>>
pub async fn export_session( &mut self, session_id: &str, session_metadata: Option<&SessionMetadata>, thoughts: &[ThoughtData], stats: Option<&ThinkingStats>, progress: Option<&ThinkingProgress>, branches: Option<&HashMap<String, Vec<ThoughtData>>>, analytics: Option<&Value>, _options: ExportOptions, ) -> Result<PathBuf, Box<dyn Error>>
Export a session
Sourcepub fn get_export_history(&self) -> &[ExportRecord]
pub fn get_export_history(&self) -> &[ExportRecord]
Get export history
Sourcepub fn clear_export_history(&mut self)
pub fn clear_export_history(&mut self)
Clear export history
Sourcepub fn add_template(&mut self, name: String, template: String)
pub fn add_template(&mut self, name: String, template: String)
Add export template
Sourcepub fn get_template(&self, name: &str) -> Option<&String>
pub fn get_template(&self, name: &str) -> Option<&String>
Get export template
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExportEngine
impl RefUnwindSafe for ExportEngine
impl Send for ExportEngine
impl Sync for ExportEngine
impl Unpin for ExportEngine
impl UnwindSafe for ExportEngine
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