diff options
Diffstat (limited to 'derive/src/network/mod.rs')
| -rw-r--r-- | derive/src/network/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/derive/src/network/mod.rs b/derive/src/network/mod.rs index 61af9c4..61338e5 100644 --- a/derive/src/network/mod.rs +++ b/derive/src/network/mod.rs @@ -57,6 +57,13 @@ pub struct NetworkField { /// network representation for this field #[darling(default)] map: bool, + /// Skips this field when parsing from network + /// representation and uses the default value of the type + #[darling(default)] + default: bool, + /// Skips this field when serializing to network representation + #[darling(default)] + skip: bool, } fn parse_fields(input: &syn::DeriveInput) -> Vec<NetworkField> { |
