i have these data types
pub enum Schema {
Object(Vec<Field>),
Array(FieldType),
}
pub struct Field {
pub name: String,
pub ty: FieldType,
}
pub enum FieldType {
String,
Integer,
Float,
Boolean,
Unknown,
Object(Vec<Field>),
Union(Vec<FieldType>),
Array(Box<FieldType>),
Optional(Box<FieldType>),
}
i want to check if two Schema are equal. But the problem is, the order of the elements in the vecs doesn't matter