This repository has been archived by the owner on May 16, 2023. It is now read-only.
Add Default derive for structs that can support it #104
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Many structs can be used part of the regular function code. It's very cumbersome to create them by hand if you only need to add a few fields, and want to leave the rest as defaults. We should include
Default
as part of the derivations, or implement it when possible, so it's easier to work with events manually.A couple of examples that could be simplified:
https://github.com/cargo-lambda/cargo-lambda/blob/main/crates/cargo-lambda-watch/src/trigger_router.rs#L98-L132
The text was updated successfully, but these errors were encountered: