pub struct Checkbox {
pub t: TypeField<23>,
pub id: Option<i32>,
pub custom_id: String,
pub default: Option<bool>,
}Expand description
Checkbox: a single
yes/no; cannot be required. The submit carries a boolean. In markup:
<Checkbox>.
Fields§
§t: TypeField<23>The component type, always 23
id: Option<i32>Identifier unique within the message; Discord numbers components without one
custom_id: StringIdentifies the input in the submit; max 100 characters
default: Option<bool>Checked initially
Implementations§
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 LabelChild 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