mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 16:08:05 +00:00
Implements alias annotation and allow multiple deserialization renames.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename = "x")]
|
||||
#[serde(rename(deserialize = "y"))]
|
||||
x: (),
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
@@ -1,8 +0,0 @@
|
||||
error: duplicate serde attribute `rename`
|
||||
--> $DIR/rename-rename-de.rs:6:13
|
||||
|
|
||||
6 | #[serde(rename(deserialize = "y"))]
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Reference in New Issue
Block a user