Skip to content

Struct-level custom rule #61

@maurocchi

Description

@maurocchi

As far as I understand, it's not possible to derive the validation trait and define a validator at struct level at the same time (for example, to check that different fields are consistent with each other).

You can implement the trait yourself, but then you cannot take advantage of the derive feature if you have other validations in that struct.

It would be nice to have a feature like the one provided by the validator crate (see struct level validation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions