authentik-client 2026.5.0-rc2

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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchedSettingsRequestFlags {
    /// Configure if applications without any policy/group/user bindings should be accessible to any user.
    #[serde(rename = "core_default_app_access")]
    pub core_default_app_access: bool,
    /// Include additional information in audit logs, may incur a performance penalty.
    #[serde(rename = "enterprise_audit_include_expanded_diff")]
    pub enterprise_audit_include_expanded_diff: bool,
    /// Upon successful authentication, re-start authentication in other open tabs.
    #[serde(rename = "flows_continuous_login")]
    pub flows_continuous_login: bool,
    /// Refresh other tabs after successful authentication.
    #[serde(rename = "flows_refresh_others")]
    pub flows_refresh_others: bool,
}

impl PatchedSettingsRequestFlags {
    pub fn new(
        core_default_app_access: bool,
        enterprise_audit_include_expanded_diff: bool,
        flows_continuous_login: bool,
        flows_refresh_others: bool,
    ) -> PatchedSettingsRequestFlags {
        PatchedSettingsRequestFlags {
            core_default_app_access,
            enterprise_audit_include_expanded_diff,
            flows_continuous_login,
            flows_refresh_others,
        }
    }
}