1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v0.0.1-alpha.1
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
/// UiNodeInputAttributes : InputAttributes represents the attributes of an input node
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct UiNodeInputAttributes {
/// Sets the input's disabled field to true or false.
#[serde(rename = "disabled")]
pub disabled: bool,
#[serde(rename = "label", skip_serializing_if = "Option::is_none")]
pub label: Option<Box<crate::models::UiText>>,
/// The input's element name.
#[serde(rename = "name")]
pub name: String,
/// The input's pattern.
#[serde(rename = "pattern", skip_serializing_if = "Option::is_none")]
pub pattern: Option<String>,
/// Mark this input field as required.
#[serde(rename = "required", skip_serializing_if = "Option::is_none")]
pub required: Option<bool>,
#[serde(rename = "type")]
pub _type: String,
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<Box<crate::models::UiNodeInputAttributesValue>>,
}
impl UiNodeInputAttributes {
/// InputAttributes represents the attributes of an input node
pub fn new(disabled: bool, name: String, _type: String) -> UiNodeInputAttributes {
UiNodeInputAttributes {
disabled,
label: None,
name,
pattern: None,
required: None,
_type,
value: None,
}
}
}