Struct ActionRow
zaun_bot::ActionRow · Struct
pub struct ActionRow(…)Builds a [types::ActionRow]: up to 5 buttons, or one select.
Methods
Section titled “Methods”pub fn new() -> SelfAn empty row.
buttons
Section titled “buttons”pub fn buttons<impl IntoIterator<Item = Button>>(buttons: impl IntoIterator<Item = Button>) -> SelfA row of buttons.
select
Section titled “select”pub fn select(select: Select) -> SelfA row holding one select.
button
Section titled “button”pub fn button(self, button: Button) -> SelfAdds a button.
pub fn build(self) -> ActionRowThe finished row.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Default