Macro mz_proto::wire_compatible

source ยท
macro_rules! wire_compatible {
    ($a:ident $(:: $a_sub:ident)* with $b:ident $(:: $b_sub:ident)*) => { ... };
}
Expand description

Defines one protobuf type as wire compatible with another.

wire_compatible!(objects_v28::DatabaseKey with objects_v27::DatabaseKey);

Internally this will implement the WireCompatible<B> for <A>, e.g. WireCompatible<objects_v27::DatabaseKey> for objects_v28::DatabaseKey and generate proptest cases that will create arbitrary objects of type B and assert they can be deserialized with type A, and vice versa.