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: SlackBasicTeamInfouser: SlackBasicUserInfochannel: Option<SlackBasicChannelInfo>message: Option<SlackHistoryMessage>callback_id: SlackCallbackIdtrigger_id: SlackTriggerIdresponse_url: SlackResponseUrlactions: Option<Vec<SlackInteractionActionInfo>>Implementations
sourceimpl 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
sourceimpl Clone for SlackInteractionMessageActionEvent
impl Clone for SlackInteractionMessageActionEvent
sourcefn clone(&self) -> SlackInteractionMessageActionEvent
fn clone(&self) -> SlackInteractionMessageActionEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'de> Deserialize<'de> for SlackInteractionMessageActionEvent
impl<'de> Deserialize<'de> for SlackInteractionMessageActionEvent
sourcefn 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
sourceimpl From<SlackInteractionMessageActionEventInit> for SlackInteractionMessageActionEvent
impl From<SlackInteractionMessageActionEventInit> for SlackInteractionMessageActionEvent
sourcefn from(value: SlackInteractionMessageActionEventInit) -> Self
fn from(value: SlackInteractionMessageActionEventInit) -> Self
Performs the conversion.
sourceimpl PartialEq<SlackInteractionMessageActionEvent> for SlackInteractionMessageActionEvent
impl PartialEq<SlackInteractionMessageActionEvent> for SlackInteractionMessageActionEvent
sourcefn eq(&self, other: &SlackInteractionMessageActionEvent) -> bool
fn eq(&self, other: &SlackInteractionMessageActionEvent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackInteractionMessageActionEvent) -> bool
fn ne(&self, other: &SlackInteractionMessageActionEvent) -> bool
This method tests for !=.
impl StructuralPartialEq for SlackInteractionMessageActionEvent
Auto Trait Implementations
impl RefUnwindSafe for SlackInteractionMessageActionEvent
impl Send for SlackInteractionMessageActionEvent
impl Sync for SlackInteractionMessageActionEvent
impl Unpin for SlackInteractionMessageActionEvent
impl UnwindSafe for SlackInteractionMessageActionEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more