pub struct Select<'a> {
pub global: GlobalAttributes<'a>,
pub events: Events<'a>,
pub disabled: bool,
pub form: Cow<'a, str>,
pub multiple: bool,
pub name: Cow<'a, str>,
pub required: bool,
pub size: Cow<'a, str>,
pub children: Vec<Node<'a>>,
}Expand description
A <select> element
Fields§
§global: GlobalAttributes<'a>The global attributes of this element
events: Events<'a>The element’s events
disabled: boolThe disabled attribute
form: Cow<'a, str>The form attribute
multiple: boolThe multiple attribute
name: Cow<'a, str>The name attribute
required: boolThe required attribute
size: Cow<'a, str>The size attribute
children: Vec<Node<'a>>The children of this element
Trait Implementations§
Source§impl<'a> Element<'a> for Select<'a>
impl<'a> Element<'a> for Select<'a>
Source§fn events_mut(&mut self) -> &mut Events<'a>
fn events_mut(&mut self) -> &mut Events<'a>
Get the mutable events of this element
Source§fn children_mut(&mut self) -> &mut Vec<Node<'a>>
fn children_mut(&mut self) -> &mut Vec<Node<'a>>
Get the mutable children of this element
Source§impl<'a> HasAutofocus<'a> for Select<'a>
impl<'a> HasAutofocus<'a> for Select<'a>
Source§fn get_autofocus(&self) -> bool
fn get_autofocus(&self) -> bool
Get the value of the
autofocus attributeSource§fn set_autofocus(&mut self, val: impl Into<bool>)
fn set_autofocus(&mut self, val: impl Into<bool>)
Set the value of the
autofocus attributeSource§impl<'a> HasDisabled<'a> for Select<'a>
impl<'a> HasDisabled<'a> for Select<'a>
Source§fn get_disabled(&self) -> bool
fn get_disabled(&self) -> bool
Get the value of the
disabled attributeSource§fn set_disabled(&mut self, val: impl Into<bool>)
fn set_disabled(&mut self, val: impl Into<bool>)
Set the value of the
disabled attributeSource§impl<'a> HasItemscope<'a> for Select<'a>
impl<'a> HasItemscope<'a> for Select<'a>
Source§fn get_itemscope(&self) -> bool
fn get_itemscope(&self) -> bool
Get the value of the
itemscope attributeSource§fn set_itemscope(&mut self, val: impl Into<bool>)
fn set_itemscope(&mut self, val: impl Into<bool>)
Set the value of the
itemscope attributeSource§impl<'a> HasMultiple<'a> for Select<'a>
impl<'a> HasMultiple<'a> for Select<'a>
Source§fn get_multiple(&self) -> bool
fn get_multiple(&self) -> bool
Get the value of the
multiple attributeSource§fn set_multiple(&mut self, val: impl Into<bool>)
fn set_multiple(&mut self, val: impl Into<bool>)
Set the value of the
multiple attributeSource§impl<'a> HasRequired<'a> for Select<'a>
impl<'a> HasRequired<'a> for Select<'a>
Source§fn get_required(&self) -> bool
fn get_required(&self) -> bool
Get the value of the
required attributeSource§fn set_required(&mut self, val: impl Into<bool>)
fn set_required(&mut self, val: impl Into<bool>)
Set the value of the
required attributeAuto Trait Implementations§
impl<'a> Freeze for Select<'a>
impl<'a> RefUnwindSafe for Select<'a>
impl<'a> Send for Select<'a>
impl<'a> Sync for Select<'a>
impl<'a> Unpin for Select<'a>
impl<'a> UnwindSafe for Select<'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