pub struct Modal { /* private fields */ }Expand description
Builds a types::Modal: 1–5 labelled inputs and text blocks.
Implementations§
Source§impl Modal
impl Modal
Sourcepub fn new(custom_id: impl Into<String>, title: impl Into<String>) -> Self
pub fn new(custom_id: impl Into<String>, title: impl Into<String>) -> Self
A modal; title ≤ 45 scalars.
Sourcepub fn input(self, label: impl Into<String>, input: TextInput) -> Self
pub fn input(self, label: impl Into<String>, input: TextInput) -> Self
Adds a text input under label (≤ 45).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modal
impl RefUnwindSafe for Modal
impl Send for Modal
impl Sync for Modal
impl Unpin for Modal
impl UnsafeUnpin for Modal
impl UnwindSafe for Modal
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