Added getStructure() function to the Attachment class.