pub struct SelectProps {
pub entries: Rc<Vec<SelectEntry>>,
pub selection: SelectSelection,
pub multiple: bool,
pub rows: Option<u16>,
pub placeholder: String,
pub enabled: bool,
}Fields§
§entries: Rc<Vec<SelectEntry>>Immutable declaration shared by live instances. Selection patches never clone labels, values or option declarations.
selection: SelectSelection§multiple: bool§rows: Option<u16>§placeholder: String§enabled: boolImplementations§
Source§impl SelectProps
impl SelectProps
pub fn options(&self) -> impl Iterator<Item = (&SelectOption, bool)>
pub fn validate(&self) -> Result<(), Error>
pub fn validate_selection(&self, keys: &[SemanticId]) -> Result<(), Error>
pub fn validate_user_selection(&self, keys: &[SemanticId]) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for SelectProps
impl Clone for SelectProps
Source§impl Debug for SelectProps
impl Debug for SelectProps
Source§impl Default for SelectProps
impl Default for SelectProps
impl Eq for SelectProps
Source§impl PartialEq for SelectProps
impl PartialEq for SelectProps
impl StructuralPartialEq for SelectProps
Auto Trait Implementations§
impl !Send for SelectProps
impl !Sync for SelectProps
impl Forget for SelectProps
impl Freeze for SelectProps
impl Move for SelectProps
impl RefUnwindSafe for SelectProps
impl Unpin for SelectProps
impl UnsafeUnpin for SelectProps
impl UnwindSafe for SelectProps
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