authentik-client 3.2024122.1

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

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

/// UserSetting : Serializer for User settings for stages and sources
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserSetting {
    #[serde(rename = "object_uid")]
    pub object_uid: String,
    #[serde(rename = "component")]
    pub component: String,
    #[serde(rename = "title")]
    pub title: String,
    #[serde(rename = "configure_url", skip_serializing_if = "Option::is_none")]
    pub configure_url: Option<String>,
    #[serde(rename = "icon_url", skip_serializing_if = "Option::is_none")]
    pub icon_url: Option<String>,
}

impl UserSetting {
    /// Serializer for User settings for stages and sources
    pub fn new(object_uid: String, component: String, title: String) -> UserSetting {
        UserSetting {
            object_uid,
            component,
            title,
            configure_url: None,
            icon_url: None,
        }
    }
}