pub struct SlackInteractionBlockSuggestionEvent {
pub team: SlackBasicTeamInfo,
pub user: SlackBasicUserInfo,
pub api_app_id: SlackAppId,
pub block_id: SlackBlockId,
pub action_id: SlackActionId,
pub container: SlackInteractionActionContainer,
pub view: Option<SlackView>,
pub value: String,
pub message: Option<SlackHistoryMessage>,
}
Fields§
§team: SlackBasicTeamInfo
§user: SlackBasicUserInfo
§api_app_id: SlackAppId
§block_id: SlackBlockId
§action_id: SlackActionId
§container: SlackInteractionActionContainer
§view: Option<SlackView>
§value: String
§message: Option<SlackHistoryMessage>
Implementations§
Source§impl SlackInteractionBlockSuggestionEvent
impl SlackInteractionBlockSuggestionEvent
pub fn new( team: SlackBasicTeamInfo, user: SlackBasicUserInfo, api_app_id: SlackAppId, block_id: SlackBlockId, action_id: SlackActionId, container: SlackInteractionActionContainer, value: 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 api_app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn with_api_app_id(self, value: SlackAppId) -> Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn container(&mut self, value: SlackInteractionActionContainer) -> &mut Self
pub fn with_container(self, value: SlackInteractionActionContainer) -> 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 value(&mut self, value: String) -> &mut Self
pub fn with_value(self, value: String) -> 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
Trait Implementations§
Source§impl Clone for SlackInteractionBlockSuggestionEvent
impl Clone for SlackInteractionBlockSuggestionEvent
Source§fn clone(&self) -> SlackInteractionBlockSuggestionEvent
fn clone(&self) -> SlackInteractionBlockSuggestionEvent
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 SlackInteractionBlockSuggestionEvent
impl<'de> Deserialize<'de> for SlackInteractionBlockSuggestionEvent
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<SlackInteractionBlockSuggestionEventInit> for SlackInteractionBlockSuggestionEvent
impl From<SlackInteractionBlockSuggestionEventInit> for SlackInteractionBlockSuggestionEvent
Source§fn from(value: SlackInteractionBlockSuggestionEventInit) -> Self
fn from(value: SlackInteractionBlockSuggestionEventInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackInteractionBlockSuggestionEvent
impl PartialEq for SlackInteractionBlockSuggestionEvent
Source§fn eq(&self, other: &SlackInteractionBlockSuggestionEvent) -> bool
fn eq(&self, other: &SlackInteractionBlockSuggestionEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackInteractionBlockSuggestionEvent
Auto Trait Implementations§
impl Freeze for SlackInteractionBlockSuggestionEvent
impl RefUnwindSafe for SlackInteractionBlockSuggestionEvent
impl Send for SlackInteractionBlockSuggestionEvent
impl Sync for SlackInteractionBlockSuggestionEvent
impl Unpin for SlackInteractionBlockSuggestionEvent
impl UnwindSafe for SlackInteractionBlockSuggestionEvent
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
)