authentik-rust 0.0.1

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

use crate::models;

/// FlowImportResult : Logs of an attempted flow import
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowImportResult {
    #[serde(rename = "logs")]
    pub logs: Vec<std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "success")]
    pub success: bool,
}

impl FlowImportResult {
    /// Logs of an attempted flow import
    pub fn new(logs: Vec<std::collections::HashMap<String, serde_json::Value>>, success: bool) -> FlowImportResult {
        FlowImportResult {
            logs,
            success,
        }
    }
}