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
sourceimpl SlackInteractionBlockActionsEvent
impl SlackInteractionBlockActionsEvent
pub fn new(
team: SlackBasicTeamInfo,
api_app_id: SlackAppId,
container: SlackInteractionActionContainer,
trigger_id: SlackTriggerId
) -> SlackInteractionBlockActionsEvent
pub fn team(
&mut self,
value: SlackBasicTeamInfo
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_team(
self,
value: SlackBasicTeamInfo
) -> SlackInteractionBlockActionsEvent
pub fn user(
&mut self,
value: SlackBasicUserInfo
) -> &mut SlackInteractionBlockActionsEvent
pub fn reset_user(&mut self) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_user(
&mut self,
value: Option<SlackBasicUserInfo>
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_user(
self,
value: SlackBasicUserInfo
) -> SlackInteractionBlockActionsEvent
pub fn without_user(self) -> SlackInteractionBlockActionsEvent
pub fn opt_user(
self,
value: Option<SlackBasicUserInfo>
) -> SlackInteractionBlockActionsEvent
pub fn api_app_id(
&mut self,
value: SlackAppId
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_api_app_id(
self,
value: SlackAppId
) -> SlackInteractionBlockActionsEvent
pub fn container(
&mut self,
value: SlackInteractionActionContainer
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_container(
self,
value: SlackInteractionActionContainer
) -> SlackInteractionBlockActionsEvent
pub fn trigger_id(
&mut self,
value: SlackTriggerId
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_trigger_id(
self,
value: SlackTriggerId
) -> SlackInteractionBlockActionsEvent
pub fn channel(
&mut self,
value: SlackBasicChannelInfo
) -> &mut SlackInteractionBlockActionsEvent
pub fn reset_channel(&mut self) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_channel(
&mut self,
value: Option<SlackBasicChannelInfo>
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_channel(
self,
value: SlackBasicChannelInfo
) -> SlackInteractionBlockActionsEvent
pub fn without_channel(self) -> SlackInteractionBlockActionsEvent
pub fn opt_channel(
self,
value: Option<SlackBasicChannelInfo>
) -> SlackInteractionBlockActionsEvent
pub fn message(
&mut self,
value: SlackHistoryMessage
) -> &mut SlackInteractionBlockActionsEvent
pub fn reset_message(&mut self) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_message(
&mut self,
value: Option<SlackHistoryMessage>
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_message(
self,
value: SlackHistoryMessage
) -> SlackInteractionBlockActionsEvent
pub fn without_message(self) -> SlackInteractionBlockActionsEvent
pub fn opt_message(
self,
value: Option<SlackHistoryMessage>
) -> SlackInteractionBlockActionsEvent
pub fn view(
&mut self,
value: SlackView
) -> &mut SlackInteractionBlockActionsEvent
pub fn reset_view(&mut self) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_view(
&mut self,
value: Option<SlackView>
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_view(self, value: SlackView) -> SlackInteractionBlockActionsEvent
pub fn without_view(self) -> SlackInteractionBlockActionsEvent
pub fn opt_view(
self,
value: Option<SlackView>
) -> SlackInteractionBlockActionsEvent
pub fn response_url(
&mut self,
value: SlackResponseUrl
) -> &mut SlackInteractionBlockActionsEvent
pub fn reset_response_url(&mut self) -> &mut SlackInteractionBlockActionsEvent
pub fn mopt_response_url(
&mut self,
value: Option<SlackResponseUrl>
) -> &mut SlackInteractionBlockActionsEvent
pub fn with_response_url(
self,
value: SlackResponseUrl
) -> SlackInteractionBlockActionsEvent
pub fn without_response_url(self) -> SlackInteractionBlockActionsEvent
pub fn opt_response_url(
self,
value: Option<SlackResponseUrl>
) -> SlackInteractionBlockActionsEvent
pub fn actions(
&mut self,
value: Vec<SlackInteractionActionInfo, Global>
) -> &mut SlackInteractionBlockActionsEvent
pub fn reset_actions(&mut self) -> &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 without_actions(self) -> SlackInteractionBlockActionsEvent
pub fn opt_actions(
self,
value: Option<Vec<SlackInteractionActionInfo, Global>>
) -> SlackInteractionBlockActionsEvent
Trait Implementations
sourceimpl Clone for SlackInteractionBlockActionsEvent
impl Clone for SlackInteractionBlockActionsEvent
sourcefn clone(&self) -> SlackInteractionBlockActionsEvent
fn clone(&self) -> SlackInteractionBlockActionsEvent
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 SlackInteractionBlockActionsEvent
impl<'de> Deserialize<'de> for SlackInteractionBlockActionsEvent
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SlackInteractionBlockActionsEvent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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
sourceimpl From<SlackInteractionBlockActionsEventInit> for SlackInteractionBlockActionsEvent
impl From<SlackInteractionBlockActionsEventInit> for SlackInteractionBlockActionsEvent
sourcefn from(
value: SlackInteractionBlockActionsEventInit
) -> SlackInteractionBlockActionsEvent
fn from(
value: SlackInteractionBlockActionsEventInit
) -> SlackInteractionBlockActionsEvent
Converts to this type from the input type.
sourceimpl PartialEq<SlackInteractionBlockActionsEvent> for SlackInteractionBlockActionsEvent
impl PartialEq<SlackInteractionBlockActionsEvent> for SlackInteractionBlockActionsEvent
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SlackInteractionBlockActionsEvent) -> bool
fn ne(&self, other: &SlackInteractionBlockActionsEvent) -> bool
This method tests for !=
.
sourceimpl Serialize for SlackInteractionBlockActionsEvent
impl Serialize for SlackInteractionBlockActionsEvent
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more