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>>,
pub state: Option<SlackActionState>,
}
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>>
§state: Option<SlackActionState>
Implementations§
source§impl SlackInteractionBlockActionsEvent
impl SlackInteractionBlockActionsEvent
pub fn new( team: SlackBasicTeamInfo, api_app_id: SlackAppId, container: SlackInteractionActionContainer, trigger_id: SlackTriggerId ) -> Self
pub fn team(&mut self, value: SlackBasicTeamInfo) -> &mut Self
pub fn with_team(self, value: SlackBasicTeamInfo) -> Self
pub fn user(&mut self, value: SlackBasicUserInfo) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackBasicUserInfo>) -> &mut Self
pub fn with_user(self, value: SlackBasicUserInfo) -> Self
pub fn without_user(self) -> Self
pub fn opt_user(self, value: Option<SlackBasicUserInfo>) -> Self
pub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn with_api_app_id(self, value: SlackAppId) -> Self
pub fn container(&mut self, value: SlackInteractionActionContainer) -> &mut Self
pub fn with_container(self, value: SlackInteractionActionContainer) -> Self
pub fn trigger_id(&mut self, value: SlackTriggerId) -> &mut Self
pub fn with_trigger_id(self, value: SlackTriggerId) -> Self
pub fn channel(&mut self, value: SlackBasicChannelInfo) -> &mut Self
pub fn reset_channel(&mut self) -> &mut Self
pub fn mopt_channel( &mut self, value: Option<SlackBasicChannelInfo> ) -> &mut Self
pub fn with_channel(self, value: SlackBasicChannelInfo) -> Self
pub fn without_channel(self) -> Self
pub fn opt_channel(self, value: Option<SlackBasicChannelInfo>) -> Self
pub fn message(&mut self, value: SlackHistoryMessage) -> &mut Self
pub fn reset_message(&mut self) -> &mut Self
pub fn mopt_message(&mut self, value: Option<SlackHistoryMessage>) -> &mut Self
pub fn with_message(self, value: SlackHistoryMessage) -> Self
pub fn without_message(self) -> Self
pub fn opt_message(self, value: Option<SlackHistoryMessage>) -> Self
pub fn view(&mut self, value: SlackView) -> &mut Self
pub fn reset_view(&mut self) -> &mut Self
pub fn mopt_view(&mut self, value: Option<SlackView>) -> &mut Self
pub fn with_view(self, value: SlackView) -> Self
pub fn without_view(self) -> Self
pub fn opt_view(self, value: Option<SlackView>) -> Self
pub fn response_url(&mut self, value: SlackResponseUrl) -> &mut Self
pub fn reset_response_url(&mut self) -> &mut Self
pub fn mopt_response_url( &mut self, value: Option<SlackResponseUrl> ) -> &mut Self
pub fn with_response_url(self, value: SlackResponseUrl) -> Self
pub fn without_response_url(self) -> Self
pub fn opt_response_url(self, value: Option<SlackResponseUrl>) -> Self
pub fn actions(&mut self, value: Vec<SlackInteractionActionInfo>) -> &mut Self
pub fn reset_actions(&mut self) -> &mut Self
pub fn mopt_actions( &mut self, value: Option<Vec<SlackInteractionActionInfo>> ) -> &mut Self
pub fn with_actions(self, value: Vec<SlackInteractionActionInfo>) -> Self
pub fn without_actions(self) -> Self
pub fn opt_actions(self, value: Option<Vec<SlackInteractionActionInfo>>) -> Self
pub fn state(&mut self, value: SlackActionState) -> &mut Self
pub fn reset_state(&mut self) -> &mut Self
pub fn mopt_state(&mut self, value: Option<SlackActionState>) -> &mut Self
pub fn with_state(self, value: SlackActionState) -> Self
pub fn without_state(self) -> Self
pub fn opt_state(self, value: Option<SlackActionState>) -> Self
Trait Implementations§
source§impl Clone for SlackInteractionBlockActionsEvent
impl Clone for SlackInteractionBlockActionsEvent
source§fn clone(&self) -> SlackInteractionBlockActionsEvent
fn clone(&self) -> SlackInteractionBlockActionsEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for SlackInteractionBlockActionsEvent
impl<'de> Deserialize<'de> for SlackInteractionBlockActionsEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackInteractionBlockActionsEventInit> for SlackInteractionBlockActionsEvent
impl From<SlackInteractionBlockActionsEventInit> for SlackInteractionBlockActionsEvent
source§fn from(value: SlackInteractionBlockActionsEventInit) -> Self
fn from(value: SlackInteractionBlockActionsEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackInteractionBlockActionsEvent
impl PartialEq for SlackInteractionBlockActionsEvent
source§fn eq(&self, other: &SlackInteractionBlockActionsEvent) -> bool
fn eq(&self, other: &SlackInteractionBlockActionsEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackInteractionBlockActionsEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackInteractionBlockActionsEvent
impl Send for SlackInteractionBlockActionsEvent
impl Sync for SlackInteractionBlockActionsEvent
impl Unpin for SlackInteractionBlockActionsEvent
impl UnwindSafe for SlackInteractionBlockActionsEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more