In case of Mary there were no sexual relations, so no rape.
But otherwise, there doesn’t seem to be a notion of consent in the Bible.