Paginated

public struct Paginated<ResultClass> : Content

This simple generic lets us declare route result types as Paginated<ContentType>, where ContentType is an array of some Content struct (probably found in this file). This simplifies writing paginated reults as we don’t need to create a separate struct just to hold the paginator, but it may make the structs more opaque, especially to those that don’t know Swift. Part of the idea of this file was to make it easy for developers to understand the JSON that would be emitted by these structs.