async fn validate_join_rules( services: &Services, room_id: &RoomId, json: &Raw<AnyStateEventContent>, ) -> Result