pub struct SelectStatic { /* private fields */ }Expand description
下拉选择-单选
Implementations§
Source§impl SelectStatic
impl SelectStatic
pub fn new() -> Self
pub fn type(self, type: &str) -> Self
pub fn name(self, name: &str) -> Self
pub fn required(self, required: bool) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn initial_index(self, initial_index: u32) -> Self
pub fn placeholder(self, placeholder: PlainText) -> Self
pub fn width(self, width: &str) -> Self
pub fn options(self, options: Vec<SelectStaticOption>) -> Self
pub fn confirm(self, confirm: InputConfirm) -> Self
Trait Implementations§
Source§impl Debug for SelectStatic
impl Debug for SelectStatic
Source§impl Default for SelectStatic
impl Default for SelectStatic
Source§impl<'de> Deserialize<'de> for SelectStatic
impl<'de> Deserialize<'de> for SelectStatic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SelectStatic
impl RefUnwindSafe for SelectStatic
impl Send for SelectStatic
impl Sync for SelectStatic
impl Unpin for SelectStatic
impl UnwindSafe for SelectStatic
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