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>>,
}Fields
team: SlackBasicTeamInfouser: Option<SlackBasicUserInfo>api_app_id: SlackAppIdcontainer: SlackInteractionActionContainertrigger_id: SlackTriggerIdchannel: Option<SlackBasicChannelInfo>message: Option<SlackHistoryMessage>view: Option<SlackView>response_url: Option<SlackResponseUrl>actions: Option<Vec<SlackInteractionActionInfo>>Implementations
sourceimpl 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
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<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<SlackInteractionBlockActionsEventInit> for SlackInteractionBlockActionsEvent
impl From<SlackInteractionBlockActionsEventInit> for SlackInteractionBlockActionsEvent
sourcefn from(value: SlackInteractionBlockActionsEventInit) -> Self
fn from(value: SlackInteractionBlockActionsEventInit) -> Self
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 !=.
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>
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