First of thanks for this great library. Its easy to get started and get thinks working.
I am building an OPCUA Pubsub library based on this crate. While doing so i noticed something with enumerations. I think in the 1.03 OPCUA specs enums should be encoded as i32 and should be single values. With the 1.04 specs the length of an enum is specified in opc.ua.types.xsd as "LengthInBits". It's not possible to encode/decode a FieldMetaData because it contains DataSetFieldFlags.
Also some enums now can be bitflags, they are marked with "IsOptionSet". They should be implemente as bitflags! instead of enum.
First of thanks for this great library. Its easy to get started and get thinks working.
I am building an OPCUA Pubsub library based on this crate. While doing so i noticed something with enumerations. I think in the 1.03 OPCUA specs enums should be encoded as i32 and should be single values. With the 1.04 specs the length of an enum is specified in opc.ua.types.xsd as "LengthInBits". It's not possible to encode/decode a FieldMetaData because it contains DataSetFieldFlags.
Also some enums now can be bitflags, they are marked with "IsOptionSet". They should be implemente as bitflags! instead of enum.
example: