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

use serde::{Deserialize, Serialize};

use crate::models;

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

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