authentik_rust/models/
paginated_saml_source_list.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct PaginatedSamlSourceList {
15    #[serde(rename = "pagination")]
16    pub pagination: Box<models::Pagination>,
17    #[serde(rename = "results")]
18    pub results: Vec<models::SamlSource>,
19}
20
21impl PaginatedSamlSourceList {
22    pub fn new(pagination: models::Pagination, results: Vec<models::SamlSource>) -> PaginatedSamlSourceList {
23        PaginatedSamlSourceList {
24            pagination: Box::new(pagination),
25            results,
26        }
27    }
28}
29