Read the following lines from a poem:
"The sun was a golden coin,
Flipping through the morning sky,
Its rays gleamed like sparkling diamonds;"
Identify the figurative language used in the phrase "The sun was a golden coin." What type of figurative language is being employed in this metaphor?