pub struct Attribute {
pub name: String,
pub value: AttributeValue,
}Fields§
§name: String§value: AttributeValueImplementations§
Source§impl Attribute
impl Attribute
pub fn new(name: impl Into<String>, value: impl Into<String>) -> Self
pub fn boolean(name: impl Into<String>, value: bool) -> Self
pub fn reactive_string( name: impl Into<String>, value: ReactiveValue<String>, ) -> Self
pub fn reactive_bool( name: impl Into<String>, value: ReactiveValue<bool>, ) -> Self
pub fn to_static_value(&self) -> String
Auto Trait Implementations§
impl Freeze for Attribute
impl !RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl !UnwindSafe for Attribute
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