pub struct UiNodeInputAttributes {
pub autocomplete: Option<AutocompleteEnum>,
pub disabled: bool,
pub label: Option<Box<UiText>>,
pub name: String,
pub node_type: String,
pub onclick: Option<String>,
pub pattern: Option<String>,
pub required: Option<bool>,
pub _type: TypeEnum,
pub value: 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
disabled: boolSets the input’s disabled field to true or false.
label: Option<Box<UiText>>§name: StringThe input’s element name.
node_type: StringNodeType 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".
onclick: Option<String>OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn.
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<Value>The input’s value.
Implementations§
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 moresource§impl Debug for UiNodeInputAttributes
impl Debug for UiNodeInputAttributes
source§impl<'de> Deserialize<'de> for UiNodeInputAttributes
impl<'de> Deserialize<'de> for UiNodeInputAttributes
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<UiNodeInputAttributes> for UiNodeInputAttributes
impl PartialEq<UiNodeInputAttributes> for UiNodeInputAttributes
source§fn eq(&self, other: &UiNodeInputAttributes) -> bool
fn eq(&self, other: &UiNodeInputAttributes) -> bool
self and other values to be equal, and is used
by ==.