We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
chrono::NaiveDate
The crate errors when trying to deserialize a TOML Local Date into a chrono::NaiveDate.
Minimum working example:
use serde::Deserialize; #[derive(Deserialize)] struct Date { date: chrono::NaiveDate, } fn main(){ let toml = r#"date = 2000-01-01"#; let date: Result<Date, _> = toml::from_str(toml); match date { Ok(ok) => println!("{}", ok.date), Err(err) => println!("{err}"), } }
Playground
Produces error:
TOML parse error at line 1, column 8 | 1 | date = 2000-01-01 | ^^^^^^^^^^ invalid type: map, expected a formatted date string
The text was updated successfully, but these errors were encountered:
Closing in favor of #390
Sorry, something went wrong.
No branches or pull requests
The crate errors when trying to deserialize a TOML Local Date into a
chrono::NaiveDate
.Minimum working example:
Playground
Produces error:
The text was updated successfully, but these errors were encountered: