pub struct SketchExporter;Expand description
Sketch exporter for generating YAML from Sketch models
Implementations§
Source§impl SketchExporter
impl SketchExporter
Sourcepub fn export_without_validation(
&self,
sketch: &Sketch,
) -> Result<String, ExportError>
pub fn export_without_validation( &self, sketch: &Sketch, ) -> Result<String, ExportError>
Export a sketch 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: &SketchIndex) -> Result<String, ExportError>
pub fn export_index(&self, index: &SketchIndex) -> Result<String, ExportError>
Sourcepub fn export_to_directory(
&self,
sketches: &[Sketch],
dir_path: &Path,
workspace_name: &str,
) -> Result<usize, ExportError>
pub fn export_to_directory( &self, sketches: &[Sketch], dir_path: &Path, workspace_name: &str, ) -> Result<usize, ExportError>
Sourcepub fn export_domain_to_directory(
&self,
sketches: &[Sketch],
dir_path: &Path,
workspace_name: &str,
domain: &str,
) -> Result<usize, ExportError>
pub fn export_domain_to_directory( &self, sketches: &[Sketch], dir_path: &Path, workspace_name: &str, domain: &str, ) -> Result<usize, ExportError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SketchExporter
impl RefUnwindSafe for SketchExporter
impl Send for SketchExporter
impl Sync for SketchExporter
impl Unpin for SketchExporter
impl UnwindSafe for SketchExporter
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