Skip to content

how to enforce validate gets called? #371

@evbo

Description

@evbo

I would think if this crate could generate new and the struct has private fields, then the implementation of new could call validate, thus making it impossible to instantiate invalid.

But currently you dev has to remember to call validate, so what can we do to guarantee it gets called?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions