pub struct CheckboxConfig {
pub label: String,
pub checked: bool,
pub disabled: bool,
}Expand description
Checkbox configuration
Fields§
§label: StringCheckbox label
checked: boolWhether checkbox is checked
disabled: boolWhether checkbox is disabled
Implementations§
Source§impl CheckboxConfig
impl CheckboxConfig
pub fn new(label: &str) -> Self
pub fn with_checked(self, checked: bool) -> Self
pub fn with_disabled(self, disabled: bool) -> Self
Trait Implementations§
Source§impl Clone for CheckboxConfig
impl Clone for CheckboxConfig
Source§fn clone(&self) -> CheckboxConfig
fn clone(&self) -> CheckboxConfig
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 CheckboxConfig
impl Debug for CheckboxConfig
Source§impl Default for CheckboxConfig
impl Default for CheckboxConfig
Source§fn default() -> CheckboxConfig
fn default() -> CheckboxConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CheckboxConfig
impl<'de> Deserialize<'de> for CheckboxConfig
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 CheckboxConfig
impl RefUnwindSafe for CheckboxConfig
impl Send for CheckboxConfig
impl Sync for CheckboxConfig
impl Unpin for CheckboxConfig
impl UnsafeUnpin for CheckboxConfig
impl UnwindSafe for CheckboxConfig
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