When to use Struct?

It returns identical data. Imagine an API endpoint for searching products, and one for getting info about an specific product. The former returns an array of products and latter returns one product. One of them has name attribute and the other title but with same value and purpose.