pub fn parse_and_validate(json: &str) -> Result<Rotation>
Parse a JSON string into a [Rotation] and validate it.
Rotation
Returns an error for invalid JSON, unsupported versions, or failed structural validation.