pub fn page_to_projected_json<T: Serialize>(
page: &Page<T>,
selected_fields: Option<&[String]>,
) -> Page<Value>Expand description
Convert a page of items to a page of projected JSON values.
This is a convenience function that combines serialization and projection
for paginated responses. It automatically applies $select projection if specified.
§Arguments
page- The page containing items to projectselected_fields- Optional slice of field names to include
§Returns
A modkit_odata::Page<Value> with projected items