When both were deemed to be fasteners by the GCR Technical Glossary:
Fasteners – Any mechanism which serves no other purposes than to cause a component to maintain a fixed position (i.e. bolt, nut, screw, etc.).
Note the first two words of the definition. And just for good measure, the bolt and stud are also technically the same type of fastener - a helical inclined plane clamping device.