[][src]Struct slack_morphism_models::events::SlackInteractionShortcutEvent

pub struct SlackInteractionShortcutEvent {
    pub team: SlackBasicTeamInfo,
    pub user: SlackBasicUserInfo,
    pub callback_id: SlackCallbackId,
    pub trigger_id: SlackTriggerId,
    pub actions: Option<Vec<SlackInteractionActionInfo>>,
}

Fields

team: SlackBasicTeamInfouser: SlackBasicUserInfocallback_id: SlackCallbackIdtrigger_id: SlackTriggerIdactions: Option<Vec<SlackInteractionActionInfo>>

Implementations

impl SlackInteractionShortcutEvent[src]

pub fn new(
    team: SlackBasicTeamInfo,
    user: SlackBasicUserInfo,
    callback_id: SlackCallbackId,
    trigger_id: SlackTriggerId
) -> Self
[src]

pub fn team(&mut self, value: SlackBasicTeamInfo) -> &mut Self[src]

pub fn with_team(self, value: SlackBasicTeamInfo) -> Self[src]

pub fn user(&mut self, value: SlackBasicUserInfo) -> &mut Self[src]

pub fn with_user(self, value: SlackBasicUserInfo) -> Self[src]

pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self[src]

pub fn with_callback_id(self, value: SlackCallbackId) -> Self[src]

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

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

pub fn actions(&mut self, value: Vec<SlackInteractionActionInfo>) -> &mut Self[src]

pub fn reset_actions(&mut self) -> &mut Self[src]

pub fn mopt_actions(
    &mut self,
    value: Option<Vec<SlackInteractionActionInfo>>
) -> &mut Self
[src]

pub fn with_actions(self, value: Vec<SlackInteractionActionInfo>) -> Self[src]

pub fn without_actions(self) -> Self[src]

pub fn opt_actions(self, value: Option<Vec<SlackInteractionActionInfo>>) -> Self[src]

Trait Implementations

impl Clone for SlackInteractionShortcutEvent[src]

impl Debug for SlackInteractionShortcutEvent[src]

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

impl From<SlackInteractionShortcutEventInit> for SlackInteractionShortcutEvent[src]

impl PartialEq<SlackInteractionShortcutEvent> for SlackInteractionShortcutEvent[src]

impl Serialize for SlackInteractionShortcutEvent[src]

impl StructuralPartialEq for SlackInteractionShortcutEvent[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.