[][src]Struct slack_morphism::listener::SlackCommandEvent

pub struct SlackCommandEvent {
    pub team_id: SlackTeamId,
    pub channel_id: SlackChannelId,
    pub user_id: SlackUserId,
    pub command: SlackCommandId,
    pub text: Option<String>,
    pub response_url: String,
    pub trigger_id: SlackTriggerId,
}

Fields

team_id: SlackTeamIdchannel_id: SlackChannelIduser_id: SlackUserIdcommand: SlackCommandIdtext: Option<String>response_url: Stringtrigger_id: SlackTriggerId

Implementations

impl SlackCommandEvent[src]

pub fn new(
    team_id: SlackTeamId,
    channel_id: SlackChannelId,
    user_id: SlackUserId,
    command: SlackCommandId,
    response_url: String,
    trigger_id: SlackTriggerId
) -> SlackCommandEvent
[src]

pub fn team_id(&mut self, value: SlackTeamId) -> &mut SlackCommandEvent[src]

pub fn with_team_id(self, value: SlackTeamId) -> SlackCommandEvent[src]

pub fn channel_id(&mut self, value: SlackChannelId) -> &mut SlackCommandEvent[src]

pub fn with_channel_id(self, value: SlackChannelId) -> SlackCommandEvent[src]

pub fn user_id(&mut self, value: SlackUserId) -> &mut SlackCommandEvent[src]

pub fn with_user_id(self, value: SlackUserId) -> SlackCommandEvent[src]

pub fn command(&mut self, value: SlackCommandId) -> &mut SlackCommandEvent[src]

pub fn with_command(self, value: SlackCommandId) -> SlackCommandEvent[src]

pub fn text(&mut self, value: String) -> &mut SlackCommandEvent[src]

pub fn reset_text(&mut self) -> &mut SlackCommandEvent[src]

pub fn mopt_text(&mut self, value: Option<String>) -> &mut SlackCommandEvent[src]

pub fn with_text(self, value: String) -> SlackCommandEvent[src]

pub fn without_text(self) -> SlackCommandEvent[src]

pub fn opt_text(self, value: Option<String>) -> SlackCommandEvent[src]

pub fn response_url(&mut self, value: String) -> &mut SlackCommandEvent[src]

pub fn with_response_url(self, value: String) -> SlackCommandEvent[src]

pub fn trigger_id(&mut self, value: SlackTriggerId) -> &mut SlackCommandEvent[src]

pub fn with_trigger_id(self, value: SlackTriggerId) -> SlackCommandEvent[src]

Trait Implementations

impl Clone for SlackCommandEvent[src]

impl Debug for SlackCommandEvent[src]

impl<'de> Deserialize<'de> for SlackCommandEvent[src]

impl From<SlackCommandEventInit> for SlackCommandEvent[src]

impl PartialEq<SlackCommandEvent> for SlackCommandEvent[src]

impl Serialize for SlackCommandEvent[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.