macro_rules! lib_struct {
(
$(#[$doc:meta])+
$ty:ident {
$($field:ident: $field_ty:ident$(,)?)+
}
) => { ... };
}
Expand description
Convenience macro to define a library struct.
Useful for reducing boilerplate, and increasing consistency.