Skip to main content

Crate gproxy_protocol_macros

Crate gproxy_protocol_macros 

Source
Expand description

Builders for protocol structs with required arguments and optional setters.

Derive Macrosยง

DeclaredFields
Rebuilds the same wire type using declared fields, recursively dropping extension bags without reading, cloning, or serializing them. Mark a bag with #[declared(extension)]; #[serde(flatten)] rest is also recognized. Formal JSON fields are preserved. This derive does not change serde behavior. An alternate protocol crate path can be supplied with #[declared(crate = "path")]. #[declared(bound = "T: path::DeclaredFields")] replaces inferred formal-field bounds, for example for mutually recursive generic types. Existing where clauses and extension-field Default bounds are retained.
WireBuilder
Generates Type::builder(required_fields...) and a TypeBuilder.