pub struct ListResponse<T> {
pub meta: ListMeta,
pub results: Vec<T>,
pub group_by: Vec<GroupByResult>,
}Expand description
Paginated list response returned by all 7 list endpoints.
Contains metadata about the query, a page of results, and optional group-by aggregations.
§Example response shape
{
"meta": {"count": 288286684, "db_response_time_ms": 109, "page": 1, "per_page": 1, "next_cursor": null, "groups_count": null},
"results": [{"id": "https://openalex.org/W3038568908", "display_name": "..."}],
"group_by": []
}When cursor pagination is used, meta.page is None and meta.next_cursor
contains the cursor for the next page (or None if no more results).
When group_by is used, the group_by array is populated and
meta.groups_count is non-null.
Fields§
§meta: ListMetaMetadata about the query: total count, pagination state, timing.
results: Vec<T>The page of entity results.
group_by: Vec<GroupByResult>Group-by aggregation results. Empty unless group_by was specified in
the request.
Trait Implementations§
Source§impl<T> Clone for ListResponse<T>where
T: Clone,
impl<T> Clone for ListResponse<T>where
T: Clone,
Source§fn clone(&self) -> ListResponse<T>
fn clone(&self) -> ListResponse<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for ListResponse<T>where
T: Debug,
impl<T> Debug for ListResponse<T>where
T: Debug,
Source§impl<'de, T> Deserialize<'de> for ListResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ListResponse<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListResponse<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListResponse<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Serialize for ListResponse<T>where
T: Serialize,
impl<T> Serialize for ListResponse<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<T> Freeze for ListResponse<T>
impl<T> RefUnwindSafe for ListResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ListResponse<T>where
T: Send,
impl<T> Sync for ListResponse<T>where
T: Sync,
impl<T> Unpin for ListResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for ListResponse<T>
impl<T> UnwindSafe for ListResponse<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more