Expand description
§bomboni: request_derive
Provides derive macros and procedural macros for request parsing and type conversion.
This crate offers several macros for working with data conversion and parsing:
Parsederive macro for converting between different data representationsparse_resource_name!macro for parsing Google-style resource namesderived_map!macro for generating derived mappings
§Features
- Automatic field mapping and conversion
- Support for complex nested structures
- Custom conversion functions
- Resource field parsing (name, timestamps, etag)
- Query parameter parsing (list and search)
- Enum and oneof field handling
- Timestamp and wrapper types support
- Bidirectional conversion support
- Serde integration
- Google AIP-122 resource name parsing
Macros§
- derived_
map - Derive macro for creating derived map types.
- parse_
resource_ name - A procedural macro that generates a function that parses a resource name into a tuple of typed segments.
Derive Macros§
- Parse
- Derive macro for parsing request types.