MessageEventContent used to be an enum, it now has a msgtype field where the enum (now called MessageType) sits.
ruma-events contains serializable types for the events in the Matrix specification that can be shared by client and server code.