Define structures to use for parsing and serialization