Skip to main content

authentik_client/models/
prompt_choice.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/// PromptChoice : Serializer for a single Choice field
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PromptChoice {
17    #[serde(rename = "value")]
18    pub value: String,
19    #[serde(rename = "label")]
20    pub label: String,
21}
22
23impl PromptChoice {
24    /// Serializer for a single Choice field
25    pub fn new(value: String, label: String) -> PromptChoice {
26        PromptChoice { value, label }
27    }
28}