Allow per-field renaming of elements/attributes

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Start by reviewing the naming conventions discussed in issue #5 and the current serialization behavior for fields. Define how an explicit per-field name should override conventions for both element and attribute serialization, then add coverage confirming both forms use the requested names.

Written by the indexing model from the issue text.

Description

Even with a set of standard naming conventions (https://github.com/thunderbird/xml-struct-rs/issues/5), there will be times that fields don't match an existing convention or violate the conventions used by an API. Allow consumers to explicitly set the name used for a field when serializing as an element or attribute.

Dominant language
Rust
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from thunderbird/xml-struct-rs

All issues in thunderbird/xml-struct-rs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.