pub struct UiNodeInputAttributes {
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: String,
pub value: Option<Value>,
}
Expand description
UiNodeInputAttributes : InputAttributes represents the attributes of an input node
Fields
disabled: bool
Sets the input’s disabled field to true or false.
label: Option<Box<UiText>>
name: String
The input’s element name.
node_type: String
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: String
value: Option<Value>
The input’s value.
Implementations
Trait Implementations
sourceimpl Clone for UiNodeInputAttributes
impl Clone for UiNodeInputAttributes
sourcefn clone(&self) -> UiNodeInputAttributes
fn clone(&self) -> UiNodeInputAttributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UiNodeInputAttributes
impl Debug for UiNodeInputAttributes
sourceimpl<'de> Deserialize<'de> for UiNodeInputAttributes
impl<'de> Deserialize<'de> for UiNodeInputAttributes
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UiNodeInputAttributes> for UiNodeInputAttributes
impl PartialEq<UiNodeInputAttributes> for UiNodeInputAttributes
sourcefn eq(&self, other: &UiNodeInputAttributes) -> bool
fn eq(&self, other: &UiNodeInputAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UiNodeInputAttributes) -> bool
fn ne(&self, other: &UiNodeInputAttributes) -> bool
This method tests for !=
.
sourceimpl Serialize for UiNodeInputAttributes
impl Serialize for UiNodeInputAttributes
impl StructuralPartialEq for UiNodeInputAttributes
Auto Trait Implementations
impl RefUnwindSafe for UiNodeInputAttributes
impl Send for UiNodeInputAttributes
impl Sync for UiNodeInputAttributes
impl Unpin for UiNodeInputAttributes
impl UnwindSafe for UiNodeInputAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more