Struct serenity_rich_interaction::menu::MenuBuilder [−][src]
pub struct MenuBuilder { /* fields omitted */ }
Expand description
A builder for messages
Implementations
Creates a new pagination menu
Adds multiple pages to the message
Adds a single control to the message
pub fn add_controls<S, I>(self, controls: I) -> Self where
S: ToString,
I: IntoIterator<Item = (isize, S, ControlActionArc)>,
pub fn add_controls<S, I>(self, controls: I) -> Self where
S: ToString,
I: IntoIterator<Item = (isize, S, ControlActionArc)>,
Adds a single control to the message
Sets the start page of the message
If the message should be sticky and always be the last one in the channel
Adds data to the menu typemap
Sets the owner of the menu if it’s set only the owner can interact with the menu
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MenuBuilder
impl Send for MenuBuilder
impl Sync for MenuBuilder
impl Unpin for MenuBuilder
impl !UnwindSafe for MenuBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more