fusionauth_rust_client/models/
form_control.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.60.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FormControl : 
15/// 
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum FormControl {
18    #[serde(rename = "checkbox")]
19    Checkbox,
20    #[serde(rename = "number")]
21    Number,
22    #[serde(rename = "password")]
23    Password,
24    #[serde(rename = "radio")]
25    Radio,
26    #[serde(rename = "select")]
27    Select,
28    #[serde(rename = "textarea")]
29    Textarea,
30    #[serde(rename = "text")]
31    Text,
32
33}
34
35impl std::fmt::Display for FormControl {
36    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
37        match self {
38            Self::Checkbox => write!(f, "checkbox"),
39            Self::Number => write!(f, "number"),
40            Self::Password => write!(f, "password"),
41            Self::Radio => write!(f, "radio"),
42            Self::Select => write!(f, "select"),
43            Self::Textarea => write!(f, "textarea"),
44            Self::Text => write!(f, "text"),
45        }
46    }
47}
48
49impl Default for FormControl {
50    fn default() -> FormControl {
51        Self::Checkbox
52    }
53}
54