pub struct SlackInteractionMessageActionEvent {
pub team: SlackBasicTeamInfo,
pub user: SlackBasicUserInfo,
pub channel: Option<SlackBasicChannelInfo>,
pub message: Option<SlackHistoryMessage>,
pub callback_id: SlackCallbackId,
pub trigger_id: SlackTriggerId,
pub response_url: SlackResponseUrl,
pub actions: Option<Vec<SlackInteractionActionInfo>>,
}
Fields§
§team: SlackBasicTeamInfo
§user: SlackBasicUserInfo
§channel: Option<SlackBasicChannelInfo>
§message: Option<SlackHistoryMessage>
§callback_id: SlackCallbackId
§trigger_id: SlackTriggerId
§response_url: SlackResponseUrl
§actions: Option<Vec<SlackInteractionActionInfo>>
Implementations§
Source§impl SlackInteractionMessageActionEvent
impl SlackInteractionMessageActionEvent
pub fn new( team: SlackBasicTeamInfo, user: SlackBasicUserInfo, callback_id: SlackCallbackId, trigger_id: SlackTriggerId, response_url: SlackResponseUrl, ) -> 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 with_user(self, value: SlackBasicUserInfo) -> 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 callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn trigger_id(&mut self, value: SlackTriggerId) -> &mut Self
pub fn with_trigger_id(self, value: SlackTriggerId) -> Self
pub fn response_url(&mut self, value: SlackResponseUrl) -> &mut Self
pub fn with_response_url(self, value: 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
Trait Implementations§
Source§impl Clone for SlackInteractionMessageActionEvent
impl Clone for SlackInteractionMessageActionEvent
Source§fn clone(&self) -> SlackInteractionMessageActionEvent
fn clone(&self) -> SlackInteractionMessageActionEvent
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 SlackInteractionMessageActionEvent
impl<'de> Deserialize<'de> for SlackInteractionMessageActionEvent
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<SlackInteractionMessageActionEventInit> for SlackInteractionMessageActionEvent
impl From<SlackInteractionMessageActionEventInit> for SlackInteractionMessageActionEvent
Source§fn from(value: SlackInteractionMessageActionEventInit) -> Self
fn from(value: SlackInteractionMessageActionEventInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackInteractionMessageActionEvent
impl PartialEq for SlackInteractionMessageActionEvent
Source§fn eq(&self, other: &SlackInteractionMessageActionEvent) -> bool
fn eq(&self, other: &SlackInteractionMessageActionEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackInteractionMessageActionEvent
Auto Trait Implementations§
impl Freeze for SlackInteractionMessageActionEvent
impl RefUnwindSafe for SlackInteractionMessageActionEvent
impl Send for SlackInteractionMessageActionEvent
impl Sync for SlackInteractionMessageActionEvent
impl Unpin for SlackInteractionMessageActionEvent
impl UnwindSafe for SlackInteractionMessageActionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)