Skip to main content

authentik_client/models/
paginated_plex_source_list.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.0
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 PaginatedPlexSourceList {
16    #[serde(rename = "pagination")]
17    pub pagination: models::Pagination,
18    #[serde(rename = "results")]
19    pub results: Vec<models::PlexSource>,
20    #[serde(rename = "autocomplete")]
21    pub autocomplete: std::collections::HashMap<String, serde_json::Value>,
22}
23
24impl PaginatedPlexSourceList {
25    pub fn new(
26        pagination: models::Pagination,
27        results: Vec<models::PlexSource>,
28        autocomplete: std::collections::HashMap<String, serde_json::Value>,
29    ) -> PaginatedPlexSourceList {
30        PaginatedPlexSourceList {
31            pagination,
32            results,
33            autocomplete,
34        }
35    }
36}