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};

/// DataExport : Mixin to validate that a valid enterprise license exists before allowing to save the object
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataExport {
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "requested_by")]
    pub requested_by: models::PartialUser,
    #[serde(rename = "requested_on")]
    pub requested_on: String,
    #[serde(rename = "content_type")]
    pub content_type: models::ContentType,
    #[serde(rename = "query_params")]
    pub query_params: std::collections::HashMap<String, serde_json::Value>,
    #[serde(rename = "file_url")]
    pub file_url: String,
    #[serde(rename = "completed")]
    pub completed: bool,
}

impl DataExport {
    /// Mixin to validate that a valid enterprise license exists before allowing to save the object
    pub fn new(
        id: uuid::Uuid,
        requested_by: models::PartialUser,
        requested_on: String,
        content_type: models::ContentType,
        query_params: std::collections::HashMap<String, serde_json::Value>,
        file_url: String,
        completed: bool,
    ) -> DataExport {
        DataExport {
            id,
            requested_by,
            requested_on,
            content_type,
            query_params,
            file_url,
            completed,
        }
    }
}