There are two parts to each rivet:
Cap The top portion of the rivet, which features an embossed and/or debussed version of your logo, type or graphic.
Nail A metal pin resembling a thumbtack, the nail is forced through the fabric by automated machine process and into the base of the cap, securing the rivet onto the garment.