pub struct SlackInteractionActionInfo {
pub action_type: SlackActionType,
pub action_id: SlackActionId,
pub block_id: Option<SlackBlockId>,
pub text: Option<SlackBlockText>,
pub value: Option<String>,
pub selected_option: Option<SlackBlockChoiceItem<SlackBlockText>>,
pub action_ts: Option<SlackTs>,
}
Fields§
§action_type: SlackActionType
§action_id: SlackActionId
§block_id: Option<SlackBlockId>
§text: Option<SlackBlockText>
§value: Option<String>
§selected_option: Option<SlackBlockChoiceItem<SlackBlockText>>
§action_ts: Option<SlackTs>
Implementations§
Source§impl SlackInteractionActionInfo
impl SlackInteractionActionInfo
pub fn new(action_type: SlackActionType, action_id: SlackActionId) -> Self
pub fn action_type(&mut self, value: SlackActionType) -> &mut Self
pub fn with_action_type(self, value: SlackActionType) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn without_block_id(self) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn text(&mut self, value: SlackBlockText) -> &mut Self
pub fn reset_text(&mut self) -> &mut Self
pub fn mopt_text(&mut self, value: Option<SlackBlockText>) -> &mut Self
pub fn with_text(self, value: SlackBlockText) -> Self
pub fn without_text(self) -> Self
pub fn opt_text(self, value: Option<SlackBlockText>) -> Self
pub fn value(&mut self, value: String) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_value(self, value: String) -> Self
pub fn without_value(self) -> Self
pub fn opt_value(self, value: Option<String>) -> Self
pub fn selected_option( &mut self, value: SlackBlockChoiceItem<SlackBlockText>, ) -> &mut Self
pub fn reset_selected_option(&mut self) -> &mut Self
pub fn mopt_selected_option( &mut self, value: Option<SlackBlockChoiceItem<SlackBlockText>>, ) -> &mut Self
pub fn with_selected_option( self, value: SlackBlockChoiceItem<SlackBlockText>, ) -> Self
pub fn without_selected_option(self) -> Self
pub fn opt_selected_option( self, value: Option<SlackBlockChoiceItem<SlackBlockText>>, ) -> Self
pub fn action_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_action_ts(&mut self) -> &mut Self
pub fn mopt_action_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_action_ts(self, value: SlackTs) -> Self
pub fn without_action_ts(self) -> Self
pub fn opt_action_ts(self, value: Option<SlackTs>) -> Self
Trait Implementations§
Source§impl Clone for SlackInteractionActionInfo
impl Clone for SlackInteractionActionInfo
Source§fn clone(&self) -> SlackInteractionActionInfo
fn clone(&self) -> SlackInteractionActionInfo
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 Debug for SlackInteractionActionInfo
impl Debug for SlackInteractionActionInfo
Source§impl<'de> Deserialize<'de> for SlackInteractionActionInfo
impl<'de> Deserialize<'de> for SlackInteractionActionInfo
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<SlackInteractionActionInfoInit> for SlackInteractionActionInfo
impl From<SlackInteractionActionInfoInit> for SlackInteractionActionInfo
Source§fn from(value: SlackInteractionActionInfoInit) -> Self
fn from(value: SlackInteractionActionInfoInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackInteractionActionInfo
Auto Trait Implementations§
impl Freeze for SlackInteractionActionInfo
impl RefUnwindSafe for SlackInteractionActionInfo
impl Send for SlackInteractionActionInfo
impl Sync for SlackInteractionActionInfo
impl Unpin for SlackInteractionActionInfo
impl UnwindSafe for SlackInteractionActionInfo
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
)