kittycad_modeling_cmds/format/
sldprt.rs1pub mod import {
3
4 use parse_display::{Display, FromStr};
5 use schemars::JsonSchema;
6 use serde::{Deserialize, Serialize};
7
8 #[derive(Clone, Debug, Default, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, Display, FromStr)]
10 #[display("split_closed_faces: {split_closed_faces}")]
11 #[serde(default, rename = "SldprtImportOptions")]
12 #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
13 #[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
14 #[cfg_attr(
15 feature = "python",
16 pyo3_stub_gen::derive::gen_stub_pyclass,
17 pyo3::pyclass(name = "SldprtImportOptions")
18 )]
19 pub struct Options {
20 pub split_closed_faces: bool,
24 }
25
26 #[cfg(feature = "python")]
27 #[pyo3_stub_gen::derive::gen_stub_pymethods]
28 #[pyo3::pymethods]
29 impl Options {
30 #[new]
31 pub fn new() -> Self {
33 Default::default()
34 }
35 }
36}