Anders429 / Anders429/serde_args

Support for sequences

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Sequences should be allowed in all contexts. Like options and bools, their context will modify how they are parsed. They will be treated as repeated optional values in all cases. If standalone (either by itself or as the value in a newtype variant), it will be parsed as a repeated list of positional optionals. If within a struct, it will be a repeated list of optional values, using the field name as the key.

The standalone version will require some additional parsing logic. The struct version *might* work out of the box by adding it to `optionals`, but some testing should be done to verify that. In both cases, the deserializer itself will need to be modified to support it, both in tracing and in the full deserialization step.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.