@@ -12,6 +12,7 @@ use serde::{Deserialize, Serialize};
1212#[ display( style = "snake_case" ) ]
1313#[ cfg_attr( feature = "ts-rs" , derive( ts_rs:: TS ) ) ]
1414#[ cfg_attr( feature = "ts-rs" , ts( export_to = "ModelingCmd.ts" ) ) ]
15+ #[ cfg_attr( feature = "python" , pyo3:: pyclass, pyo3_stub_gen:: derive:: gen_stub_pyclass_enum) ]
1516pub enum Axis {
1617 /// 'Y' axis.
1718 Y = 1 ,
@@ -25,6 +26,7 @@ pub enum Axis {
2526#[ display( style = "snake_case" ) ]
2627#[ cfg_attr( feature = "ts-rs" , derive( ts_rs:: TS ) ) ]
2728#[ cfg_attr( feature = "ts-rs" , ts( export_to = "ModelingCmd.ts" ) ) ]
29+ #[ cfg_attr( feature = "python" , pyo3:: pyclass, pyo3_stub_gen:: derive:: gen_stub_pyclass_enum) ]
2830pub enum Direction {
2931 /// Increasing numbers.
3032 Positive = 1 ,
@@ -48,6 +50,7 @@ impl std::ops::Mul for Direction {
4850#[ display( "({axis}, {direction})" ) ]
4951#[ cfg_attr( feature = "ts-rs" , derive( ts_rs:: TS ) ) ]
5052#[ cfg_attr( feature = "ts-rs" , ts( export_to = "ModelingCmd.ts" ) ) ]
53+ #[ cfg_attr( feature = "python" , pyo3:: pyclass, pyo3_stub_gen:: derive:: gen_stub_pyclass) ]
5154pub struct AxisDirectionPair {
5255 /// Axis specifier.
5356 pub axis : Axis ,
@@ -67,6 +70,7 @@ pub struct AxisDirectionPair {
6770#[ display( "forward: {forward}, up: {up}" ) ]
6871#[ cfg_attr( feature = "ts-rs" , derive( ts_rs:: TS ) ) ]
6972#[ cfg_attr( feature = "ts-rs" , ts( export_to = "ModelingCmd.ts" ) ) ]
73+ #[ cfg_attr( feature = "python" , pyo3:: pyclass, pyo3_stub_gen:: derive:: gen_stub_pyclass) ]
7074pub struct System {
7175 /// Axis the front face of a model looks along.
7276 pub forward : AxisDirectionPair ,
0 commit comments