Skip to main content

authentik_client/models/
paginated_user_plex_source_connection_list.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 PaginatedUserPlexSourceConnectionList {
16    #[serde(rename = "pagination")]
17    pub pagination: models::Pagination,
18    #[serde(rename = "results")]
19    pub results: Vec<models::UserPlexSourceConnection>,
20    #[serde(rename = "autocomplete")]
21    pub autocomplete: std::collections::HashMap<String, serde_json::Value>,
22}
23
24impl PaginatedUserPlexSourceConnectionList {
25    pub fn new(
26        pagination: models::Pagination,
27        results: Vec<models::UserPlexSourceConnection>,
28        autocomplete: std::collections::HashMap<String, serde_json::Value>,
29    ) -> PaginatedUserPlexSourceConnectionList {
30        PaginatedUserPlexSourceConnectionList {
31            pagination,
32            results,
33            autocomplete,
34        }
35    }
36}