Skip to main content

authentik_client/models/
pagination.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Pagination {
16    #[serde(rename = "next")]
17    pub next: f64,
18    #[serde(rename = "previous")]
19    pub previous: f64,
20    #[serde(rename = "count")]
21    pub count: f64,
22    #[serde(rename = "current")]
23    pub current: f64,
24    #[serde(rename = "total_pages")]
25    pub total_pages: f64,
26    #[serde(rename = "start_index")]
27    pub start_index: f64,
28    #[serde(rename = "end_index")]
29    pub end_index: f64,
30}
31
32impl Pagination {
33    pub fn new(
34        next: f64,
35        previous: f64,
36        count: f64,
37        current: f64,
38        total_pages: f64,
39        start_index: f64,
40        end_index: f64,
41    ) -> Pagination {
42        Pagination {
43            next,
44            previous,
45            count,
46            current,
47            total_pages,
48            start_index,
49            end_index,
50        }
51    }
52}