Implement flat struct with primitive fields