Structure of a bacterial metal transporter