Struct Modal
zaun_bot::Modal · Struct
pub struct Modal { … }Builds a [types::Modal]: 1–5 labelled inputs and text blocks.
Methods
Section titled “Methods”pub fn new<impl Into<String>, impl Into<String>>(custom_id: impl Into<String>, title: impl Into<String>) -> SelfA modal; title ≤ 45 scalars.
pub fn input<impl Into<String>>(self, label: impl Into<String>, input: TextInput) -> SelfAdds a text input under label (≤ 45).
select
Section titled “select”pub fn select<impl Into<String>>(self, label: impl Into<String>, select: Select) -> SelfAdds a select under label.
pub fn text<impl Into<String>>(self, content: impl Into<String>) -> SelfAdds a block of text.
pub fn build(self) -> ModalThe finished modal.
Trait implementations
Section titled “Trait implementations”Clone, Debug, From<Modal>