I disagree. If I were in that situation, I wouldn’t tell the person until I was comfortable with it and could trust the person enough with that bit of information. Personally, I wouldn’t even marry the person until I could develop the trust to be able to share such a thing.
But I do not think it is mandatory for a girl to tell the future inlaws/husband about a rape incident. Telling such a thing is basically perpetuating the belief that that unscathed piece of skin is what makes or breaks a woman.