pub struct ChoicePickerComponent {
pub common: ComponentCommon,
pub label: Option<DynamicString>,
pub options: Vec<ChoiceOption>,
pub value: DynamicStringList,
pub variant: Option<ChoicePickerVariant>,
pub checkable: Option<Checkable>,
}Expand description
选择器组件
Fields§
§common: ComponentCommon§label: Option<DynamicString>选择器标签
options: Vec<ChoiceOption>选项列表
value: DynamicStringList当前选中值
variant: Option<ChoicePickerVariant>选择器类型
checkable: Option<Checkable>验证规则
Trait Implementations§
Source§impl Clone for ChoicePickerComponent
impl Clone for ChoicePickerComponent
Source§fn clone(&self) -> ChoicePickerComponent
fn clone(&self) -> ChoicePickerComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChoicePickerComponent
impl Debug for ChoicePickerComponent
Source§impl<'de> Deserialize<'de> for ChoicePickerComponent
impl<'de> Deserialize<'de> for ChoicePickerComponent
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
Source§impl PartialEq for ChoicePickerComponent
impl PartialEq for ChoicePickerComponent
Source§impl Serialize for ChoicePickerComponent
impl Serialize for ChoicePickerComponent
impl StructuralPartialEq for ChoicePickerComponent
Auto Trait Implementations§
impl Freeze for ChoicePickerComponent
impl RefUnwindSafe for ChoicePickerComponent
impl Send for ChoicePickerComponent
impl Sync for ChoicePickerComponent
impl Unpin for ChoicePickerComponent
impl UnsafeUnpin for ChoicePickerComponent
impl UnwindSafe for ChoicePickerComponent
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