Skip to main content

authentik_client/models/
data_export.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/// DataExport : Mixin to validate that a valid enterprise license exists before allowing to save the object
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DataExport {
17    #[serde(rename = "id")]
18    pub id: uuid::Uuid,
19    #[serde(rename = "requested_by")]
20    pub requested_by: models::PartialUser,
21    #[serde(rename = "requested_on")]
22    pub requested_on: String,
23    #[serde(rename = "content_type")]
24    pub content_type: models::ContentType,
25    #[serde(rename = "query_params")]
26    pub query_params: std::collections::HashMap<String, serde_json::Value>,
27    #[serde(rename = "file_url")]
28    pub file_url: String,
29    #[serde(rename = "completed")]
30    pub completed: bool,
31}
32
33impl DataExport {
34    /// Mixin to validate that a valid enterprise license exists before allowing to save the object
35    pub fn new(
36        id: uuid::Uuid,
37        requested_by: models::PartialUser,
38        requested_on: String,
39        content_type: models::ContentType,
40        query_params: std::collections::HashMap<String, serde_json::Value>,
41        file_url: String,
42        completed: bool,
43    ) -> DataExport {
44        DataExport {
45            id,
46            requested_by,
47            requested_on,
48            content_type,
49            query_params,
50            file_url,
51            completed,
52        }
53    }
54}