Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support serde attribute rename, alias #61

Open
mirsella opened this issue Feb 19, 2025 · 0 comments
Open

support serde attribute rename, alias #61

mirsella opened this issue Feb 19, 2025 · 0 comments

Comments

@mirsella
Copy link

hello

currenctly, neither the rename or alias serde attribute works.
for example

#[derive(Serialize, Deserialize)]
pub struct Config {
    #[serde(alias = "FLY_PUBLIC_IP")]
    pub public_ip: String,
}

or the same with rename.

thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant