pub struct ListMeta {
pub count: i64,
pub db_response_time_ms: i64,
pub page: Option<i32>,
pub per_page: Option<i32>,
pub next_cursor: Option<String>,
pub groups_count: Option<i64>,
}Expand description
Metadata returned with every list response.
{"count": 288286684, "db_response_time_ms": 109, "page": 1, "per_page": 1, "next_cursor": null, "groups_count": null}Fields§
§count: i64Total number of entities matching the query (before pagination).
db_response_time_ms: i64Server-side query execution time in milliseconds.
page: Option<i32>Current page number. None when cursor pagination is used.
per_page: Option<i32>Number of results per page.
next_cursor: Option<String>Cursor for the next page of results. None when there are no more
results or when offset pagination is used. Pass this value as
ListParams::cursor to fetch the next
page.
groups_count: Option<i64>Number of distinct groups when group_by is used. None otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ListMeta
impl<'de> Deserialize<'de> for ListMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ListMeta
impl Serialize for ListMeta
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 Freeze for ListMeta
impl RefUnwindSafe for ListMeta
impl Send for ListMeta
impl Sync for ListMeta
impl Unpin for ListMeta
impl UnsafeUnpin for ListMeta
impl UnwindSafe for ListMeta
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