pub enum UiNodeAttributes {
UiNodeAnchorAttributes {
href: String,
id: String,
title: Box<UiText>,
},
UiNodeImageAttributes {
height: i64,
id: String,
src: String,
width: i64,
},
UiNodeInputAttributes {
disabled: bool,
label: Option<Box<UiText>>,
name: String,
onclick: Option<String>,
pattern: Option<String>,
required: Option<bool>,
_type: String,
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
UiNodeImageAttributes
Fields
height: i64
Height of the image
id: String
A unique identifier
src: String
The image’s source URL. format: uri
width: i64
Width of the image
UiNodeInputAttributes
Fields
disabled: bool
Sets the input’s disabled field to true or false.
name: String
The input’s element name.
onclick: Option<String>
OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn.
_type: String
UiNodeScriptAttributes
Fields
_async: bool
The script async type
crossorigin: String
The script cross origin policy
id: String
A unique identifier
integrity: String
The script’s integrity hash
nonce: String
Nonce for CSP A nonce you may want to use to improve your Content Security Policy. You do not have to use this value but if you want to improve your CSP policies you may use it. You can also choose to use your own nonce value!
referrerpolicy: String
The script referrer policy
src: String
The script source
_type: String
The script MIME type
UiNodeTextAttributes
Trait Implementations
sourceimpl Clone for UiNodeAttributes
impl Clone for UiNodeAttributes
sourcefn clone(&self) -> UiNodeAttributes
fn clone(&self) -> UiNodeAttributes
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 UiNodeAttributes
impl Debug for UiNodeAttributes
sourceimpl<'de> Deserialize<'de> for UiNodeAttributes
impl<'de> Deserialize<'de> for UiNodeAttributes
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<UiNodeAttributes> for UiNodeAttributes
impl PartialEq<UiNodeAttributes> for UiNodeAttributes
sourcefn eq(&self, other: &UiNodeAttributes) -> bool
fn eq(&self, other: &UiNodeAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UiNodeAttributes) -> bool
fn ne(&self, other: &UiNodeAttributes) -> bool
This method tests for !=
.
sourceimpl Serialize for UiNodeAttributes
impl Serialize for UiNodeAttributes
impl StructuralPartialEq for UiNodeAttributes
Auto Trait Implementations
impl RefUnwindSafe for UiNodeAttributes
impl Send for UiNodeAttributes
impl Sync for UiNodeAttributes
impl Unpin for UiNodeAttributes
impl UnwindSafe for UiNodeAttributes
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