pub struct JsonExporter;Expand description
STL Exporter.
Trait Implementations§
Source§impl Exporter for JsonExporter
impl Exporter for JsonExporter
Source§fn export(&self, model: &Model, filename: &Path) -> Result<Value, ExportError>
fn export(&self, model: &Model, filename: &Path) -> Result<Value, ExportError>
Export the model if the model is marked for export.
Source§fn output_type(&self) -> OutputType
fn output_type(&self) -> OutputType
The expected model output type of this exporter. Read more
Source§fn model_parameters(&self) -> ParameterValueList
fn model_parameters(&self) -> ParameterValueList
Parameters that add exporter specific attributes to a model. Read more
Source§fn export_parameters(&self) -> ParameterValueList
fn export_parameters(&self) -> ParameterValueList
Parameters for the export attribute:
export = svg("filename.svg")Source§impl FileIoInterface for JsonExporter
impl FileIoInterface for JsonExporter
Source§fn file_extensions(&self) -> Vec<CompactString>
fn file_extensions(&self) -> Vec<CompactString>
Return file extensions this IO interface supports.
Auto Trait Implementations§
impl Freeze for JsonExporter
impl RefUnwindSafe for JsonExporter
impl Send for JsonExporter
impl Sync for JsonExporter
impl Unpin for JsonExporter
impl UnwindSafe for JsonExporter
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more