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
E.g for
enum ImageType { UNSPECIFIED = 0; JPEG = 1; jpeg = 1; PNG = 2; png = 2; }
pbjson_build produces
fn visit_str<E>(self, value: &str) -> std::result::Result<Self::Value, E> where E: serde::de::Error, { match value { "UNSPECIFIED" => Ok(ImageType::Unspecified), "JPEG" => Ok(image::Type::Jpeg), "PNG" => Ok(image::Type::Png), _ => Err(serde::de::Error::unknown_variant(value, FIELDS)), } }
and the lower case values jpeg and png can not be deserialized.
jpeg
png
The text was updated successfully, but these errors were encountered:
No branches or pull requests
E.g for
pbjson_build produces
and the lower case values
jpeg
andpng
can not be deserialized.The text was updated successfully, but these errors were encountered: