authentik-client 2026.2.3

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

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

/// FileList : Base serializer class which doesn't implement create/update methods
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FileList {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "mime_type")]
    pub mime_type: String,
    #[serde(rename = "url")]
    pub url: String,
    #[serde(
        rename = "themed_urls",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub themed_urls: Option<Option<models::ThemedUrls>>,
}

impl FileList {
    /// Base serializer class which doesn't implement create/update methods
    pub fn new(name: String, mime_type: String, url: String) -> FileList {
        FileList {
            name,
            mime_type,
            url,
            themed_urls: None,
        }
    }
}