macro_rules! derive_deftly_template_NetdocParseableFields {
({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
($($wrong:tt)*) => { ... };
}
Expand description
Derive NetdocParseableFields
for a struct with individual items
Defines a struct FooNetdocParseAccumulator
to be the
NetdocParseableFields::Accumulator
.
Similar to
#[derive_deftly(NetdocParseable)]
,
but:
- Derives
NetdocParseableFields
- The input struct can contain only normal non-structural items (so it’s not a sub-document with an intro item).
- The only attributes supported are the field attributes
#[deftly(netdoc(keyword = STR))]
#[deftly(netdoc(default))]
#[deftly(netdoc(single_arg))]
#[deftly(netdoc(with = "MODULE"))]
This is a derive_deftly
template. Do not invoke it directly.
To use it, write: #[derive(Deftly)] #[derive_deftly(NetdocParseableFields)]
.