#[non_exhaustive]pub struct ActionRow {
pub id: Option<i32>,
pub components: Vec<Component>,
}Expand description
An action row: up to 5 buttons or a single select menu, at the top level of a message or in a container.
In modals, action rows holding text inputs are deprecated in favor of Label.
discord.js counterpart: ActionRow / ActionRowBuilder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<i32>The component’s numeric identifier (generated by Discord when not set).
components: Vec<Component>The buttons or the select menu.
Implementations§
Trait Implementations§
impl Eq for ActionRow
impl StructuralPartialEq for ActionRow
Auto Trait Implementations§
impl Forget for ActionRow
impl Freeze for ActionRow
impl Move for ActionRow
impl RefUnwindSafe for ActionRow
impl Send for ActionRow
impl Sync for ActionRow
impl Unpin for ActionRow
impl UnsafeUnpin for ActionRow
impl UnwindSafe for ActionRow
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