Struct slack_morphism::prelude::SlackInteractionBlockActionsEvent [−][src]
pub struct SlackInteractionBlockActionsEvent {
pub team: SlackBasicTeamInfo,
pub user: Option<SlackBasicUserInfo>,
pub api_app_id: SlackAppId,
pub container: SlackInteractionActionContainer,
pub trigger_id: SlackTriggerId,
pub channel: Option<SlackBasicChannelInfo>,
pub message: Option<SlackHistoryMessage>,
pub view: Option<SlackView>,
pub response_url: Option<SlackResponseUrl>,
pub actions: Option<Vec<SlackInteractionActionInfo, Global>>,
}
Fields
team: SlackBasicTeamInfo
user: Option<SlackBasicUserInfo>
api_app_id: SlackAppId
container: SlackInteractionActionContainer
trigger_id: SlackTriggerId
channel: Option<SlackBasicChannelInfo>
message: Option<SlackHistoryMessage>
view: Option<SlackView>
response_url: Option<SlackResponseUrl>
actions: Option<Vec<SlackInteractionActionInfo, Global>>
Implementations
pub fn new(
team: SlackBasicTeamInfo,
api_app_id: SlackAppId,
container: SlackInteractionActionContainer,
trigger_id: SlackTriggerId
) -> SlackInteractionBlockActionsEvent
pub fn mopt_user(
&mut self,
value: Option<SlackBasicUserInfo>
) -> &mut SlackInteractionBlockActionsEvent
pub fn container(
&mut self,
value: SlackInteractionActionContainer
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_container(
self,
value: SlackInteractionActionContainer
) -> SlackInteractionBlockActionsEvent
pub fn channel(
&mut self,
value: SlackBasicChannelInfo
) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_channel(
&mut self,
value: Option<SlackBasicChannelInfo>
) -> &mut SlackInteractionBlockActionsEvent
pub fn opt_channel(
self,
value: Option<SlackBasicChannelInfo>
) -> SlackInteractionBlockActionsEvent
pub fn message(
&mut self,
value: SlackHistoryMessage
) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_message(
&mut self,
value: Option<SlackHistoryMessage>
) -> &mut SlackInteractionBlockActionsEvent
pub fn opt_message(
self,
value: Option<SlackHistoryMessage>
) -> SlackInteractionBlockActionsEvent
pub fn mopt_view(
&mut self,
value: Option<SlackView>
) -> &mut SlackInteractionBlockActionsEvent
pub fn response_url(
&mut self,
value: SlackResponseUrl
) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_response_url(
&mut self,
value: Option<SlackResponseUrl>
) -> &mut SlackInteractionBlockActionsEvent
pub fn opt_response_url(
self,
value: Option<SlackResponseUrl>
) -> SlackInteractionBlockActionsEvent
pub fn actions(
&mut self,
value: Vec<SlackInteractionActionInfo, Global>
) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_actions(
&mut self,
value: Option<Vec<SlackInteractionActionInfo, Global>>
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_actions(
self,
value: Vec<SlackInteractionActionInfo, Global>
) -> SlackInteractionBlockActionsEvent
pub fn opt_actions(
self,
value: Option<Vec<SlackInteractionActionInfo, Global>>
) -> SlackInteractionBlockActionsEvent
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackInteractionBlockActionsEvent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackInteractionBlockActionsEvent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn from(
value: SlackInteractionBlockActionsEventInit
) -> SlackInteractionBlockActionsEvent
pub fn from(
value: SlackInteractionBlockActionsEventInit
) -> SlackInteractionBlockActionsEvent
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl Send for SlackInteractionBlockActionsEvent
impl Sync for SlackInteractionBlockActionsEvent
impl Unpin for SlackInteractionBlockActionsEvent
Blanket Implementations
Mutably borrows from an owned value. Read more