pub struct Checkbox {
pub custom_id: String,
pub default: Option<bool>,
pub id: Option<i32>,
}Expand description
A component allowing a checkbox in a modal.
checkboxes are only available in modals and must be placed inside a label.
Fields’ default values may be used by setting them to None.
Fields§
§custom_id: StringDeveloper defined identifier.
Must be between 1-100 characters
default: Option<bool>Whether the checkbox is selected by default.
Set to false if None is given
id: Option<i32>Optional identifier for the component.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Checkbox
impl<'de> Deserialize<'de> for Checkbox
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
impl Eq for Checkbox
impl StructuralPartialEq for Checkbox
Auto Trait Implementations§
impl Freeze for Checkbox
impl RefUnwindSafe for Checkbox
impl Send for Checkbox
impl Sync for Checkbox
impl Unpin for Checkbox
impl UnsafeUnpin for Checkbox
impl UnwindSafe for Checkbox
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