Rim securing a gemstone in a piece of jewellery