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§fn clone(&self) -> ModalInteractionCheckbox
fn clone(&self) -> ModalInteractionCheckbox
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 ModalInteractionCheckbox
impl Debug 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
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.
impl Eq for ModalInteractionCheckbox
impl StructuralPartialEq for ModalInteractionCheckbox
Auto Trait Implementations§
impl Freeze for ModalInteractionCheckbox
impl RefUnwindSafe for ModalInteractionCheckbox
impl Send for ModalInteractionCheckbox
impl Sync for ModalInteractionCheckbox
impl Unpin for ModalInteractionCheckbox
impl UnsafeUnpin for ModalInteractionCheckbox
impl UnwindSafe for ModalInteractionCheckbox
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