Struct code parses into pair vector