pub struct UiNodeInputAttributes {Show 14 fields
pub autocomplete: Option<AutocompleteEnum>,
pub disabled: bool,
pub label: Option<Box<UiText>>,
pub maxlength: Option<i64>,
pub name: String,
pub node_type: NodeTypeEnum,
pub onclick: Option<String>,
pub onclick_trigger: Option<OnclickTriggerEnum>,
pub onload: Option<String>,
pub onload_trigger: Option<OnloadTriggerEnum>,
pub pattern: Option<String>,
pub required: Option<bool>,
pub type: TypeEnum,
pub value: Option<Option<Value>>,
}Expand description
UiNodeInputAttributes : InputAttributes represents the attributes of an input node
Fields§
§autocomplete: Option<AutocompleteEnum>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
disabled: boolSets the input’s disabled field to true or false.
label: Option<Box<UiText>>§maxlength: Option<i64>MaxLength may contain the input’s maximum length.
name: StringThe input’s element name.
node_type: NodeTypeEnumNodeType represents this node’s types. It is a mirror of node.type and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is "input". text Text input Input img Image a Anchor script Script div Division
onclick: Option<String>OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn. Deprecated: Using OnClick requires the use of eval() which is a security risk. Use OnClickTrigger instead.
onclick_trigger: Option<OnclickTriggerEnum>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
onload: Option<String>OnLoad may contain javascript which should be executed on load. This is primarily used for WebAuthn. Deprecated: Using OnLoad requires the use of eval() which is a security risk. Use OnLoadTrigger instead.
onload_trigger: Option<OnloadTriggerEnum>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
pattern: Option<String>The input’s pattern.
required: Option<bool>Mark this input field as required.
type: TypeEnumThe 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
value: Option<Option<Value>>The input’s value.
Implementations§
Source§impl UiNodeInputAttributes
impl UiNodeInputAttributes
Sourcepub fn new(
disabled: bool,
name: String,
node_type: NodeTypeEnum,
type: TypeEnum,
) -> UiNodeInputAttributes
pub fn new( disabled: bool, name: String, node_type: NodeTypeEnum, type: TypeEnum, ) -> UiNodeInputAttributes
InputAttributes represents the attributes of an input node
Trait Implementations§
Source§impl Clone for UiNodeInputAttributes
impl Clone for UiNodeInputAttributes
Source§fn clone(&self) -> UiNodeInputAttributes
fn clone(&self) -> UiNodeInputAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more