I have this file .ron:
Price(
model: Model(
A(0.02),
B(0.094),
C(0.05),
D(0.02),
E(0.004),
F(0.001),
),
tool: Tool(
A(0.006),
B(0.3),
)
)
but I don't know if this will work like this:
#[derive(Debug, Deserialize)]
struct Price {
model: Model,
tool: Tool
}
#[derive(Debug, Deserialize)]
enum Model {
A(f64),
B(f64),
C(f64)
D(f64),
E(f64),
F(f64)
}
#[derive(Debug, Deserialize)]
enum Model {
A(f64),
B(f64)
}
I didn't see examples about enum
I have this file .ron:
but I don't know if this will work like this:
I didn't see examples about
enum