Expand description
Builders for protocol structs with required arguments and optional setters.
Derive Macrosยง
- Declared
Fields - 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)] restis 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. - Wire
Builder - Generates
Type::builder(required_fields...)and aTypeBuilder.