pub fn paginated_response<T: Serialize>( items: Vec<T>, cursor: Option<String>, ) -> Value
Build a paginated JSON response.