Struct dioxus_core::Attribute
source · pub struct Attribute<'a> {
pub name: &'a str,
pub value: AttributeValue<'a>,
pub namespace: Option<&'static str>,
pub volatile: bool,
/* private fields */
}
Expand description
An attribute on a DOM node, such as id="my-thing"
or href="https://example.com"
Fields§
§name: &'a str
The name of the attribute.
value: AttributeValue<'a>
The value of the attribute
namespace: Option<&'static str>
The namespace of the attribute.
Doesn’t exist in the html spec. Used in Dioxus to denote “style” tags and other attribute groups.
volatile: bool
An indication of we should always try and set the attribute. Used in controlled components to ensure changes are propagated
Implementations§
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more