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

Compile error on some enums #130

Open
smw-wagnerma opened this issue Apr 19, 2021 · 0 comments
Open

Compile error on some enums #130

smw-wagnerma opened this issue Apr 19, 2021 · 0 comments

Comments

@smw-wagnerma
Copy link
Contributor

I get compile error on some generated enums others seems fine:

`bea::beadto1::AuthentificationTypeSoapDTO` doesn't implement `std::fmt::Display`
the trait `std::fmt::Display` is not implemented for `bea::beadto1::AuthentificationTypeSoapDTO`
in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
required by `std::fmt::Display::fmt`

The generated code is derived from Debug, it should be fine:

#[derive(PartialEq, Debug, YaSerialize, YaDeserialize)]
#[yaserde(prefix = "beadto1", namespace = "beadto1: http://brak.de/bea/application/dto/soap/dto1")]
pub enum AuthentificationTypeSoapDTO {
    // deprecated
    #[yaserde(rename = "nPA")]
    Npa,
    // Authentifizierung über ein Zertifikat.
    Certificate,
    __Unknown__(String),
}

impl Default for AuthentificationTypeSoapDTO {
    fn default() -> AuthentificationTypeSoapDTO {
        Self::__Unknown__("No valid variants".into())
    }
}

impl Validate for AuthentificationTypeSoapDTO {}

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

No branches or pull requests

1 participant