ory_client/models/
ui_node_attributes.rs

1/*
2 * Ory APIs
3 *
4 * # Introduction 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.  ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages:  | Language       | Download SDK                                                     | Documentation                                                                        | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart           | [pub.dev](https://pub.dev/packages/ory_client)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md)       | | .NET           | [nuget.org](https://www.nuget.org/packages/Ory.Client/)          | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md)     | | Elixir         | [hex.pm](https://hex.pm/packages/ory_client)                     | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md)     | | Go             | [github.com](https://github.com/ory/client-go)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md)         | | Java           | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md)       | | JavaScript     | [npmjs.com](https://www.npmjs.com/package/@ory/client)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) |  | PHP            | [packagist.org](https://packagist.org/packages/ory/client)       | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md)        | | Python         | [pypi.org](https://pypi.org/project/ory-client/)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md)     | | Ruby           | [rubygems.org](https://rubygems.org/gems/ory-client)             | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md)       | | Rust           | [crates.io](https://crates.io/crates/ory-client)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md)       | 
5 *
6 * The version of the OpenAPI document: v1.22.7
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(tag = "node_type")]
16pub enum UiNodeAttributes {
17    #[serde(rename="input")]
18    Input(Box<models::UiNodeInputAttributes>),
19    #[serde(rename="text")]
20    Text(Box<models::UiNodeTextAttributes>),
21    #[serde(rename="img")]
22    Img(Box<models::UiNodeImageAttributes>),
23    #[serde(rename="a")]
24    A(Box<models::UiNodeAnchorAttributes>),
25    #[serde(rename="script")]
26    Script(Box<models::UiNodeScriptAttributes>),
27    #[serde(rename="div")]
28    Div(Box<models::UiNodeDivisionAttributes>),
29}
30
31impl Default for UiNodeAttributes {
32    fn default() -> Self {
33        Self::Input(Default::default())
34    }
35}
36
37/// The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode username webauthn InputAttributeAutocompleteUsernameWebauthn
38#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39pub enum AutocompleteEnum {
40    #[serde(rename = "email")]
41    Email,
42    #[serde(rename = "tel")]
43    Tel,
44    #[serde(rename = "url")]
45    Url,
46    #[serde(rename = "current-password")]
47    CurrentPassword,
48    #[serde(rename = "new-password")]
49    NewPassword,
50    #[serde(rename = "one-time-code")]
51    OneTimeCode,
52    #[serde(rename = "username webauthn")]
53    UsernameWebauthn,
54}
55
56impl Default for AutocompleteEnum {
57    fn default() -> AutocompleteEnum {
58        Self::Email
59    }
60}
61/// OnClickTrigger may contain a WebAuthn trigger which should be executed on click.  The trigger maps to a JavaScript function provided by Ory, which triggers actions such as PassKey registration or login. oryWebAuthnRegistration WebAuthnTriggersWebAuthnRegistration oryWebAuthnLogin WebAuthnTriggersWebAuthnLogin oryPasskeyLogin WebAuthnTriggersPasskeyLogin oryPasskeyLoginAutocompleteInit WebAuthnTriggersPasskeyLoginAutocompleteInit oryPasskeyRegistration WebAuthnTriggersPasskeyRegistration oryPasskeySettingsRegistration WebAuthnTriggersPasskeySettingsRegistration
62#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
63pub enum OnclickTriggerEnum {
64    #[serde(rename = "oryWebAuthnRegistration")]
65    OryWebAuthnRegistration,
66    #[serde(rename = "oryWebAuthnLogin")]
67    OryWebAuthnLogin,
68    #[serde(rename = "oryPasskeyLogin")]
69    OryPasskeyLogin,
70    #[serde(rename = "oryPasskeyLoginAutocompleteInit")]
71    OryPasskeyLoginAutocompleteInit,
72    #[serde(rename = "oryPasskeyRegistration")]
73    OryPasskeyRegistration,
74    #[serde(rename = "oryPasskeySettingsRegistration")]
75    OryPasskeySettingsRegistration,
76}
77
78impl Default for OnclickTriggerEnum {
79    fn default() -> OnclickTriggerEnum {
80        Self::OryWebAuthnRegistration
81    }
82}
83/// OnLoadTrigger may contain a WebAuthn trigger which should be executed on load.  The trigger maps to a JavaScript function provided by Ory, which triggers actions such as PassKey registration or login. oryWebAuthnRegistration WebAuthnTriggersWebAuthnRegistration oryWebAuthnLogin WebAuthnTriggersWebAuthnLogin oryPasskeyLogin WebAuthnTriggersPasskeyLogin oryPasskeyLoginAutocompleteInit WebAuthnTriggersPasskeyLoginAutocompleteInit oryPasskeyRegistration WebAuthnTriggersPasskeyRegistration oryPasskeySettingsRegistration WebAuthnTriggersPasskeySettingsRegistration
84#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
85pub enum OnloadTriggerEnum {
86    #[serde(rename = "oryWebAuthnRegistration")]
87    OryWebAuthnRegistration,
88    #[serde(rename = "oryWebAuthnLogin")]
89    OryWebAuthnLogin,
90    #[serde(rename = "oryPasskeyLogin")]
91    OryPasskeyLogin,
92    #[serde(rename = "oryPasskeyLoginAutocompleteInit")]
93    OryPasskeyLoginAutocompleteInit,
94    #[serde(rename = "oryPasskeyRegistration")]
95    OryPasskeyRegistration,
96    #[serde(rename = "oryPasskeySettingsRegistration")]
97    OryPasskeySettingsRegistration,
98}
99
100impl Default for OnloadTriggerEnum {
101    fn default() -> OnloadTriggerEnum {
102        Self::OryWebAuthnRegistration
103    }
104}
105