[
https://issues.apache.org/jira/browse/AVRO-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Tzvetanov Grigorov updated AVRO-3492:
--------------------------------------------
Description:
{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}
was:
{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}
> 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
>
> {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)