Can't all these data structures be described just as well using ASN.1, which has the advantage of being thoroughly documented, tried and tested, and just as declarative?
You could do this but it would be more trouble than it is worth. ASN.1 ECN can encode arbitrary protocols but the process is fairly complicated [0]. An ASN.1 compiler1 for embedded/space systems [1] mentions that there is only one implementation of ECN.