I would assume #2 is the coil. If you are curious you can trace-out the connections (an Ohmmeter can help), draw the schematic, and compare to the manufacturer's recommended circuit shown on the datasheet.
The coil will measure a short (or
nearly zero Ohms) with an Ohmmeter.
When I look at a breakout board with a MP1584 it looks unfamiliar (no capacitor, no coil)
The black part above the IC that you didn't mark is probably the output capacitor.