Struct dioxus_core::nodes::Attribute [−][src]
An attribute on a DOM node, such as id="my-thing" or
href="https://example.com".
Fields
name: &'static strvalue: &'a strImplementations
impl<'a> Attribute<'a>[src]
pub fn name(&self) -> &'a str[src]
Get this attribute’s name, such as "id" in <div id="my-thing" />.
pub fn value(&self) -> &'a str[src]
The attribute value, such as "my-thing" in <div id="my-thing" />.
Trait Implementations
impl<'a> Clone for Attribute<'a>[src]
impl<'a> Debug for Attribute<'a>[src]
impl<'a> Deserialize<'static> for Attribute<'a>[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>, [src]
__D: Deserializer<'static>,
impl<'a> Serialize for Attribute<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Attribute<'a>
impl<'a> Send for Attribute<'a>
impl<'a> Sync for Attribute<'a>
impl<'a> Unpin for Attribute<'a>
impl<'a> UnwindSafe for Attribute<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,