Struct ory_hydra_client::models::token_pagination_response_headers::TokenPaginationResponseHeaders
source · pub struct TokenPaginationResponseHeaders {
pub link: Option<String>,
pub x_total_count: Option<i64>,
}
Expand description
TokenPaginationResponseHeaders : The Link
HTTP header contains multiple links (first
, next
, last
, previous
) formatted as: <https://{project-slug}.projects.oryapis.com/admin/clients?page_size={limit}&page_token={offset}>; rel=\"{page}\"
For details on pagination please head over to the pagination documentation.
Fields§
§link: Option<String>
The Link HTTP Header The Link
header contains a comma-delimited list of links to the following pages: first: The first page of results. next: The next page of results. prev: The previous page of results. last: The last page of results. Pages are omitted if they do not exist. For example, if there is no next page, the next
link is omitted. Examples: </clients?page_size=5&page_token=0>; rel="first",</clients?page_size=5&page_token=15>; rel="next",</clients?page_size=5&page_token=5>; rel="prev",</clients?page_size=5&page_token=20>; rel="last"
x_total_count: Option<i64>
The X-Total-Count HTTP Header The X-Total-Count
header contains the total number of items in the collection.
Implementations§
source§impl TokenPaginationResponseHeaders
impl TokenPaginationResponseHeaders
sourcepub fn new() -> TokenPaginationResponseHeaders
pub fn new() -> TokenPaginationResponseHeaders
The Link
HTTP header contains multiple links (first
, next
, last
, previous
) formatted as: <https://{project-slug}.projects.oryapis.com/admin/clients?page_size={limit}&page_token={offset}>; rel=\"{page}\"
For details on pagination please head over to the pagination documentation.
Trait Implementations§
source§impl Clone for TokenPaginationResponseHeaders
impl Clone for TokenPaginationResponseHeaders
source§fn clone(&self) -> TokenPaginationResponseHeaders
fn clone(&self) -> TokenPaginationResponseHeaders
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for TokenPaginationResponseHeaders
impl<'de> Deserialize<'de> for TokenPaginationResponseHeaders
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for TokenPaginationResponseHeaders
impl PartialEq for TokenPaginationResponseHeaders
source§fn eq(&self, other: &TokenPaginationResponseHeaders) -> bool
fn eq(&self, other: &TokenPaginationResponseHeaders) -> bool
self
and other
values to be equal, and is used
by ==
.