pub struct ModalInteractionCheckbox {
pub custom_id: String,
pub id: i32,
pub value: bool,
}Expand description
User filled in Checkbox.
Fields§
§custom_id: String§id: i32User defined identifier for the component.
See [Discord Docs/Custom ID].
Unique identifier for the component.
value: boolValue submitted by the user.
Trait Implementations§
Source§impl Clone for ModalInteractionCheckbox
impl Clone for ModalInteractionCheckbox
Source§impl Debug for ModalInteractionCheckbox
impl Debug for ModalInteractionCheckbox
impl Eq for ModalInteractionCheckbox
Source§impl From<ModalInteractionCheckbox> for ModalInteractionComponent
impl From<ModalInteractionCheckbox> for ModalInteractionComponent
Source§fn from(checkbox: ModalInteractionCheckbox) -> Self
fn from(checkbox: ModalInteractionCheckbox) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModalInteractionCheckbox
impl PartialEq for ModalInteractionCheckbox
impl StructuralPartialEq for ModalInteractionCheckbox
Source§impl TryFrom<ModalInteractionComponent> for ModalInteractionCheckbox
impl TryFrom<ModalInteractionComponent> for ModalInteractionCheckbox
Source§type Error = ModalInteractionComponent
type Error = ModalInteractionComponent
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ModalInteractionCheckbox
impl Freeze for ModalInteractionCheckbox
impl Move for ModalInteractionCheckbox
impl RefUnwindSafe for ModalInteractionCheckbox
impl Send for ModalInteractionCheckboxwhere
RawVecInner: Send,
impl Sync for ModalInteractionCheckboxwhere
RawVecInner: Sync,
impl Unpin for ModalInteractionCheckbox
impl UnsafeUnpin for ModalInteractionCheckbox
impl UnwindSafe for ModalInteractionCheckboxwhere
RawVecInner: UnwindSafe,
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