Open bzm3r opened 3 years ago
No, there isn't much of a reason for the new
method to be pub(crate)
while the other methods and the struct are actually public (the fields are not and I'd like to keep them that way, as one day we might want to fully support named types in unions and they will likely need to change). Would you like to do the change yourself?
I notice that the
UnionSchema
and its methodnew
is private, and thus cannot be accessed in order to create a union's schema directly. By that I mean: without passing a string, but instead creating a schema by composingschema::Schema
types.Is this on purpose?