pub struct SelectPerson { /* private fields */ }Expand description
人员选择-单选
Implementations§
Source§impl SelectPerson
impl SelectPerson
pub fn new() -> Self
pub fn type(self, type: &str) -> Self
pub fn required(self, required: bool) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn placeholder(self, placeholder: PlainText) -> Self
pub fn width(self, width: &str) -> Self
pub fn options(self, options: Vec<SelectPersonOption>) -> Self
pub fn confirm(self, confirm: InputConfirm) -> Self
Trait Implementations§
Source§impl Debug for SelectPerson
impl Debug for SelectPerson
Source§impl Default for SelectPerson
impl Default for SelectPerson
Source§impl<'de> Deserialize<'de> for SelectPerson
impl<'de> Deserialize<'de> for SelectPerson
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 SelectPerson
impl RefUnwindSafe for SelectPerson
impl Send for SelectPerson
impl Sync for SelectPerson
impl Unpin for SelectPerson
impl UnwindSafe for SelectPerson
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