authentik-client 2026.2.2-rc2

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc2
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedTokenModelList {
    #[serde(rename = "pagination")]
    pub pagination: models::Pagination,
    #[serde(rename = "results")]
    pub results: Vec<models::TokenModel>,
    #[serde(rename = "autocomplete")]
    pub autocomplete: std::collections::HashMap<String, serde_json::Value>,
}

impl PaginatedTokenModelList {
    pub fn new(
        pagination: models::Pagination,
        results: Vec<models::TokenModel>,
        autocomplete: std::collections::HashMap<String, serde_json::Value>,
    ) -> PaginatedTokenModelList {
        PaginatedTokenModelList {
            pagination,
            results,
            autocomplete,
        }
    }
}