pub struct SlackInteractionDialogueSubmissionEvent {
pub team: SlackBasicTeamInfo,
pub user: SlackBasicUserInfo,
pub channel: Option<SlackBasicChannelInfo>,
pub callback_id: Option<SlackCallbackId>,
pub state: Option<String>,
pub submission: HashMap<String, String>,
}
Fields§
§team: SlackBasicTeamInfo
§user: SlackBasicUserInfo
§channel: Option<SlackBasicChannelInfo>
§callback_id: Option<SlackCallbackId>
§state: Option<String>
§submission: HashMap<String, String>
Implementations§
Source§impl SlackInteractionDialogueSubmissionEvent
impl SlackInteractionDialogueSubmissionEvent
pub fn new( team: SlackBasicTeamInfo, user: SlackBasicUserInfo, submission: HashMap<String, String>, ) -> 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 callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn reset_callback_id(&mut self) -> &mut Self
pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn without_callback_id(self) -> Self
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
pub fn state(&mut self, value: String) -> &mut Self
pub fn reset_state(&mut self) -> &mut Self
pub fn mopt_state(&mut self, value: Option<String>) -> &mut Self
pub fn with_state(self, value: String) -> Self
pub fn without_state(self) -> Self
pub fn opt_state(self, value: Option<String>) -> Self
pub fn submission(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn with_submission(self, value: HashMap<String, String>) -> Self
Trait Implementations§
Source§impl Clone for SlackInteractionDialogueSubmissionEvent
impl Clone for SlackInteractionDialogueSubmissionEvent
Source§fn clone(&self) -> SlackInteractionDialogueSubmissionEvent
fn clone(&self) -> SlackInteractionDialogueSubmissionEvent
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 SlackInteractionDialogueSubmissionEvent
impl<'de> Deserialize<'de> for SlackInteractionDialogueSubmissionEvent
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<SlackInteractionDialogueSubmissionEventInit> for SlackInteractionDialogueSubmissionEvent
impl From<SlackInteractionDialogueSubmissionEventInit> for SlackInteractionDialogueSubmissionEvent
Source§fn from(value: SlackInteractionDialogueSubmissionEventInit) -> Self
fn from(value: SlackInteractionDialogueSubmissionEventInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackInteractionDialogueSubmissionEvent
impl PartialEq for SlackInteractionDialogueSubmissionEvent
Source§fn eq(&self, other: &SlackInteractionDialogueSubmissionEvent) -> bool
fn eq(&self, other: &SlackInteractionDialogueSubmissionEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackInteractionDialogueSubmissionEvent
Auto Trait Implementations§
impl Freeze for SlackInteractionDialogueSubmissionEvent
impl RefUnwindSafe for SlackInteractionDialogueSubmissionEvent
impl Send for SlackInteractionDialogueSubmissionEvent
impl Sync for SlackInteractionDialogueSubmissionEvent
impl Unpin for SlackInteractionDialogueSubmissionEvent
impl UnwindSafe for SlackInteractionDialogueSubmissionEvent
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
)