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

Implement Default for Value #224

Closed
dtolnay opened this issue Jan 29, 2017 · 0 comments
Closed

Implement Default for Value #224

dtolnay opened this issue Jan 29, 2017 · 0 comments

Comments

@dtolnay
Copy link
Member

dtolnay commented Jan 29, 2017

A default value of Null would be useful for handling omitted fields of type Value:

#[derive(Deserialize)]
struct S {
    #[serde(default)]
    v: Value,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant