Struct disint_model::interaction::response::InteractionResponseBuilder[][src]

pub struct InteractionResponseBuilder<State>(_);

Implementations

impl InteractionResponseBuilder<Pong>[src]

pub fn pong() -> Self[src]

pub fn finish(self) -> InteractionResponse[src]

impl InteractionResponseBuilder<Deferred>[src]

pub fn deferred() -> Self[src]

pub fn finish(self) -> InteractionResponse[src]

impl InteractionResponseBuilder<ChannelMessageNoContent>[src]

pub fn channel_message() -> Self[src]

pub fn content(
    self,
    content: impl Into<String>
) -> InteractionResponseBuilder<ChannelMessage>
[src]

pub fn tts(self, tts: bool) -> Self[src]

pub fn embed(self, embed: Embed) -> InteractionResponseBuilder<ChannelMessage>[src]

pub fn allowed_mentions(self, allowed_mentions: AllowedMentions) -> Self[src]

impl InteractionResponseBuilder<ChannelMessage>[src]

pub fn finish(self) -> InteractionResponse[src]

pub fn content(self, content: impl Into<String>) -> Self[src]

pub fn tts(self, tts: bool) -> Self[src]

pub fn embed(self, embed: Embed) -> Self[src]

pub fn allowed_mentions(self, allowed_mentions: AllowedMentions) -> Self[src]

Trait Implementations

impl<State: Debug> Debug for InteractionResponseBuilder<State>[src]

Auto Trait Implementations

impl<State> RefUnwindSafe for InteractionResponseBuilder<State> where
    State: RefUnwindSafe

impl<State> Send for InteractionResponseBuilder<State> where
    State: Send

impl<State> Sync for InteractionResponseBuilder<State> where
    State: Sync

impl<State> Unpin for InteractionResponseBuilder<State> where
    State: Unpin

impl<State> UnwindSafe for InteractionResponseBuilder<State> where
    State: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.