It's an intermediate PR. There is a refactoring required to solve the problem of facet validation. There are also several urgent problems that Victor and Dmitry have found in the generated code.
Update:
I'm sorry I got confused in my branches and this PR accidentally got the code that was supposed to be in task ch365. If it is very important, I can fix it with squash and cherry-pick.
Now in this PR:
refactoring required to solve the problem of facet validation
separation of xsd parsing and rust code generation (even more convenient to add features.)
Add Validate by facets implementation
Add some tests (need more tests for the tests god)
It's an intermediate PR. There is a refactoring required to solve the problem of facet validation. There are also several urgent problems that Victor and Dmitry have found in the generated code. Update: I'm sorry I got confused in my branches and this PR accidentally got the code that was supposed to be in task ch365. If it is very important, I can fix it with squash and cherry-pick. Now in this PR: