BSON struct creator.