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.17.2
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}
28
29impl Default for UiNodeAttributes {
30    fn default() -> Self {
31        Self::Input(Default::default())
32    }
33}
34
35/// The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum AutocompleteEnum {
38    #[serde(rename = "email")]
39    Email,
40    #[serde(rename = "tel")]
41    Tel,
42    #[serde(rename = "url")]
43    Url,
44    #[serde(rename = "current-password")]
45    CurrentPassword,
46    #[serde(rename = "new-password")]
47    NewPassword,
48    #[serde(rename = "one-time-code")]
49    OneTimeCode,
50}
51
52impl Default for AutocompleteEnum {
53    fn default() -> AutocompleteEnum {
54        Self::Email
55    }
56}
57/// 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
58#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
59pub enum OnclickTriggerEnum {
60    #[serde(rename = "oryWebAuthnRegistration")]
61    OryWebAuthnRegistration,
62    #[serde(rename = "oryWebAuthnLogin")]
63    OryWebAuthnLogin,
64    #[serde(rename = "oryPasskeyLogin")]
65    OryPasskeyLogin,
66    #[serde(rename = "oryPasskeyLoginAutocompleteInit")]
67    OryPasskeyLoginAutocompleteInit,
68    #[serde(rename = "oryPasskeyRegistration")]
69    OryPasskeyRegistration,
70    #[serde(rename = "oryPasskeySettingsRegistration")]
71    OryPasskeySettingsRegistration,
72}
73
74impl Default for OnclickTriggerEnum {
75    fn default() -> OnclickTriggerEnum {
76        Self::OryWebAuthnRegistration
77    }
78}
79/// 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
80#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
81pub enum OnloadTriggerEnum {
82    #[serde(rename = "oryWebAuthnRegistration")]
83    OryWebAuthnRegistration,
84    #[serde(rename = "oryWebAuthnLogin")]
85    OryWebAuthnLogin,
86    #[serde(rename = "oryPasskeyLogin")]
87    OryPasskeyLogin,
88    #[serde(rename = "oryPasskeyLoginAutocompleteInit")]
89    OryPasskeyLoginAutocompleteInit,
90    #[serde(rename = "oryPasskeyRegistration")]
91    OryPasskeyRegistration,
92    #[serde(rename = "oryPasskeySettingsRegistration")]
93    OryPasskeySettingsRegistration,
94}
95
96impl Default for OnloadTriggerEnum {
97    fn default() -> OnloadTriggerEnum {
98        Self::OryWebAuthnRegistration
99    }
100}
101