[ 
https://issues.apache.org/jira/browse/AVRO-3492?focusedWorklogId=757703&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-757703
 ]

ASF GitHub Bot logged work on AVRO-3492:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Apr/22 19:45
            Start Date: 17/Apr/22 19:45
    Worklog Time Spent: 10m 
      Work Description: martin-g opened a new pull request, #1647:
URL: https://github.com/apache/avro/pull/1647

   Uses Darling's 'multiple' attribute feature - 
https://github.com/mathstuf/rust-darling/blob/master/tests/multiple.rs.
   
   ### Jira
   
   - [X] My PR addresses the following [Avro 
Jira](https://issues.apache.org/jira/browse/AVRO/) issues and references them 
in the PR title. For example, "AVRO-1234: My Avro PR"
     - https://issues.apache.org/jira/browse/AVRO-3492
   
   ### Tests
   
   - [X] My PR adds a new unit test
   - 
   ### Commits
   
   - [X] My commits all reference Jira issues in their subject lines. In 
addition, my commits follow the guidelines from "[How to write a good git 
commit message](https://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [ ] TODO




Issue Time Tracking
-------------------

            Worklog Id:     (was: 757703)
    Remaining Estimate: 0h
            Time Spent: 10m

> Rust: Implement derive aliases via annotation
> ---------------------------------------------
>
>                 Key: AVRO-3492
>                 URL: https://issues.apache.org/jira/browse/AVRO-3492
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: rust
>            Reporter: Martin Tzvetanov Grigorov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {color:#222222}Follow up on the Avro derive work. {color}
> {color:#222222}We want to be able to set "aliases" for a 
> Schema::Record.{color}
> E.g. a slice of strings:
> {code:java}
> #[derive(Debug, Serialize, Deserialize, AvroSchema, Clone, PartialEq)]
> #[avro(aliases = ["a", "b", "c"])]
> struct TestBasicWithU32 {
>     a: u32,
> } {code}
> or the less desired comma separated string:
> {code:java}
> #[derive(Debug, Serialize, Deserialize, AvroSchema, Clone, PartialEq)]
> #[avro(aliases = "a, b, c")]
> struct TestBasicWithU32 {
>     a: u32,
> } {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to