pub struct DecisionExporter;Expand description
Decision exporter for generating MADR-compliant YAML from Decision models
Implementations§
Source§impl DecisionExporter
impl DecisionExporter
Sourcepub fn new() -> DecisionExporter
pub fn new() -> DecisionExporter
Create a new Decision exporter instance
Sourcepub fn export_without_validation(
&self,
decision: &Decision,
) -> Result<String, ExportError>
pub fn export_without_validation( &self, decision: &Decision, ) -> Result<String, ExportError>
Export a decision without validation
Use this when you want to skip schema validation for performance or when exporting to a trusted destination.
Sourcepub fn export_index(&self, index: &DecisionIndex) -> Result<String, ExportError>
pub fn export_index(&self, index: &DecisionIndex) -> Result<String, ExportError>
Sourcepub fn export_to_directory(
&self,
decisions: &[Decision],
dir_path: &Path,
workspace_name: &str,
) -> Result<usize, ExportError>
pub fn export_to_directory( &self, decisions: &[Decision], dir_path: &Path, workspace_name: &str, ) -> Result<usize, ExportError>
Trait Implementations§
Source§impl Default for DecisionExporter
impl Default for DecisionExporter
Source§fn default() -> DecisionExporter
fn default() -> DecisionExporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecisionExporter
impl RefUnwindSafe for DecisionExporter
impl Send for DecisionExporter
impl Sync for DecisionExporter
impl Unpin for DecisionExporter
impl UnwindSafe for DecisionExporter
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