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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
/*
* 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: v1.1.13
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "nodetype")]
pub enum UiNodeAttributes {
#[serde(rename="a")]
UiNodeAnchorAttributes {
/// The link's href (destination) URL. format: uri
#[serde(rename = "href")]
// true, false, , String, false
href: String,
/// A unique identifier
#[serde(rename = "id")]
// true, false, , String, false
id: String,
#[serde(rename = "title")]
// true, false, , crate::models::UiText, true
title: Box<crate::models::UiText>,
},
#[serde(rename="img")]
UiNodeImageAttributes {
/// Height of the image
#[serde(rename = "height")]
// true, false, , i64, false
height: i64,
/// A unique identifier
#[serde(rename = "id")]
// true, false, , String, false
id: String,
/// The image's source URL. format: uri
#[serde(rename = "src")]
// true, false, , String, false
src: String,
/// Width of the image
#[serde(rename = "width")]
// true, false, , i64, false
width: i64,
},
#[serde(rename="input")]
UiNodeInputAttributes {
/// The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode
#[serde(rename = "autocomplete", skip_serializing_if = "Option::is_none")]
// false, false, AutocompleteEnum, String, false
autocomplete: Option<UiNodeAttributesAutocompleteEnum>,
/// Sets the input's disabled field to true or false.
#[serde(rename = "disabled")]
// true, false, , bool, false
disabled: bool,
#[serde(rename = "label", skip_serializing_if = "Option::is_none")]
// false, false, , crate::models::UiText, true
label: Option<Box<crate::models::UiText>>,
/// The input's element name.
#[serde(rename = "name")]
// true, false, , String, false
name: String,
/// OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn.
#[serde(rename = "onclick", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
onclick: Option<String>,
/// The input's pattern.
#[serde(rename = "pattern", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
pattern: Option<String>,
/// Mark this input field as required.
#[serde(rename = "required", skip_serializing_if = "Option::is_none")]
// false, false, , bool, false
required: Option<bool>,
/// The input's element type. text InputAttributeTypeText password InputAttributeTypePassword number InputAttributeTypeNumber checkbox InputAttributeTypeCheckbox hidden InputAttributeTypeHidden email InputAttributeTypeEmail tel InputAttributeTypeTel submit InputAttributeTypeSubmit button InputAttributeTypeButton datetime-local InputAttributeTypeDateTimeLocal date InputAttributeTypeDate url InputAttributeTypeURI
#[serde(rename = "type")]
// true, false, TypeEnum, String, false
_type: UiNodeAttributesTypeEnum,
/// The input's value.
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
// false, true, , serde_json::Value, false
value: Option<serde_json::Value>,
},
#[serde(rename="script")]
UiNodeScriptAttributes {
/// The script async type
#[serde(rename = "async")]
// true, false, , bool, false
_async: bool,
/// The script cross origin policy
#[serde(rename = "crossorigin")]
// true, false, , String, false
crossorigin: String,
/// A unique identifier
#[serde(rename = "id")]
// true, false, , String, false
id: String,
/// The script's integrity hash
#[serde(rename = "integrity")]
// true, false, , String, false
integrity: String,
/// Nonce for CSP A nonce you may want to use to improve your Content Security Policy. You do not have to use this value but if you want to improve your CSP policies you may use it. You can also choose to use your own nonce value!
#[serde(rename = "nonce")]
// true, false, , String, false
nonce: String,
/// The script referrer policy
#[serde(rename = "referrerpolicy")]
// true, false, , String, false
referrerpolicy: String,
/// The script source
#[serde(rename = "src")]
// true, false, , String, false
src: String,
/// The script MIME type
#[serde(rename = "type")]
// true, false, , String, false
_type: String,
},
#[serde(rename="text")]
UiNodeTextAttributes {
/// A unique identifier
#[serde(rename = "id")]
// true, false, , String, false
id: String,
#[serde(rename = "text")]
// true, false, , crate::models::UiText, true
text: Box<crate::models::UiText>,
},
}
/// The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum UiNodeAttributesAutocompleteEnum {
#[serde(rename = "email")]
Email,
#[serde(rename = "tel")]
Tel,
#[serde(rename = "url")]
Url,
#[serde(rename = "current-password")]
CurrentPassword,
#[serde(rename = "new-password")]
NewPassword,
#[serde(rename = "one-time-code")]
OneTimeCode,
}
/// The input's element type. text InputAttributeTypeText password InputAttributeTypePassword number InputAttributeTypeNumber checkbox InputAttributeTypeCheckbox hidden InputAttributeTypeHidden email InputAttributeTypeEmail tel InputAttributeTypeTel submit InputAttributeTypeSubmit button InputAttributeTypeButton datetime-local InputAttributeTypeDateTimeLocal date InputAttributeTypeDate url InputAttributeTypeURI
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum UiNodeAttributesTypeEnum {
#[serde(rename = "text")]
Text,
#[serde(rename = "password")]
Password,
#[serde(rename = "number")]
Number,
#[serde(rename = "checkbox")]
Checkbox,
#[serde(rename = "hidden")]
Hidden,
#[serde(rename = "email")]
Email,
#[serde(rename = "tel")]
Tel,
#[serde(rename = "submit")]
Submit,
#[serde(rename = "button")]
Button,
#[serde(rename = "datetime-local")]
DatetimeLocal,
#[serde(rename = "date")]
Date,
#[serde(rename = "url")]
Url,
}