Ideally we might have modeled this with an enum with one named field in the variants, but instant-xml is not yet up to the task; in the mean-time, this provides more robust types, and manual ToXml implementations aren't too verbose anyway.