structio-derive 0.8.0

The optional #[derive(Structio)] for structio. Enable structio's `derive` feature rather than depending on this crate directly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(structio::Structio)]
#[structio(write_only)]
struct Gauge {
    #[structio(required)]
    label: String,
}

#[derive(Default, structio::Structio)]
struct Reading {
    #[structio(write_only)]
    celsius: f64,
}

fn main() {}