pub enum UiNodeAttributes {
UiNodeAnchorAttributes {
href: String,
id: String,
title: Box<UiText>,
},
UiNodeImageAttributes {
height: i64,
id: String,
src: String,
width: i64,
},
UiNodeInputAttributes {
autocomplete: Option<UiNodeAttributesAutocompleteEnum>,
disabled: bool,
label: Option<Box<UiText>>,
name: String,
onclick: Option<String>,
pattern: Option<String>,
required: Option<bool>,
_type: UiNodeAttributesTypeEnum,
value: Option<Value>,
},
UiNodeScriptAttributes {
_async: bool,
crossorigin: String,
id: String,
integrity: String,
nonce: String,
referrerpolicy: String,
src: String,
_type: String,
},
UiNodeTextAttributes {
id: String,
text: Box<UiText>,
},
}
Variants§
UiNodeAnchorAttributes
Fields
UiNodeImageAttributes
Fields
UiNodeInputAttributes
Fields
autocomplete: Option<UiNodeAttributesAutocompleteEnum>
The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode
onclick: Option<String>
OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn.
_type: UiNodeAttributesTypeEnum
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
UiNodeScriptAttributes
Fields
UiNodeTextAttributes
Trait Implementations§
source§impl Clone for UiNodeAttributes
impl Clone for UiNodeAttributes
source§fn clone(&self) -> UiNodeAttributes
fn clone(&self) -> UiNodeAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UiNodeAttributes
impl Debug for UiNodeAttributes
source§impl<'de> Deserialize<'de> for UiNodeAttributes
impl<'de> Deserialize<'de> for UiNodeAttributes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq<UiNodeAttributes> for UiNodeAttributes
impl PartialEq<UiNodeAttributes> for UiNodeAttributes
source§fn eq(&self, other: &UiNodeAttributes) -> bool
fn eq(&self, other: &UiNodeAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.