pub struct CreateModal { /* private fields */ }
Expand description
Implementations§
Source§impl CreateModal
impl CreateModal
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
Creates a new modal.
Sourcepub fn components(self, components: Vec<CreateActionRow>) -> Self
pub fn components(self, components: Vec<CreateActionRow>) -> Self
Sets the components of this message.
Overwrites existing components.
Trait Implementations§
Source§impl Clone for CreateModal
impl Clone for CreateModal
Source§fn clone(&self) -> CreateModal
fn clone(&self) -> CreateModal
Returns a copy 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 CreateModal
impl Debug for CreateModal
Source§impl Default for CreateModal
impl Default for CreateModal
Source§fn default() -> CreateModal
fn default() -> CreateModal
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateModal
impl RefUnwindSafe for CreateModal
impl Send for CreateModal
impl Sync for CreateModal
impl Unpin for CreateModal
impl UnwindSafe for CreateModal
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