Rules Guy: How much of the ball needs to be in the cup to be considered holed?

Golf ball resting against pin and about to drop into hole

What do the rules say about when exactly a ball is considered holed?

Getty Images