The metallicity and internal structure of the Lyman-alpha forest clouds