In my collection, I have a couple of badges that fasten this way. If for some reason the pin is missing, one can fasten a badge like this to a bonnet either by stitching it to the cap or fashioning a new pin.