Struct slack_morphism::events::SlackInteractionActionInfo
source · [−]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: SlackActionTypeaction_id: SlackActionIdblock_id: Option<SlackBlockId>text: Option<SlackBlockText>value: Option<String>selected_option: Option<SlackBlockChoiceItem<SlackBlockText>>action_ts: Option<SlackTs>Implementations
sourceimpl 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
sourceimpl Clone for SlackInteractionActionInfo
impl Clone for SlackInteractionActionInfo
sourcefn clone(&self) -> SlackInteractionActionInfo
fn clone(&self) -> SlackInteractionActionInfo
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 Debug for SlackInteractionActionInfo
impl Debug for SlackInteractionActionInfo
sourceimpl<'de> Deserialize<'de> for SlackInteractionActionInfo
impl<'de> Deserialize<'de> for SlackInteractionActionInfo
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<SlackInteractionActionInfoInit> for SlackInteractionActionInfo
impl From<SlackInteractionActionInfoInit> for SlackInteractionActionInfo
sourcefn from(value: SlackInteractionActionInfoInit) -> Self
fn from(value: SlackInteractionActionInfoInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackInteractionActionInfo> for SlackInteractionActionInfo
impl PartialEq<SlackInteractionActionInfo> for SlackInteractionActionInfo
sourcefn eq(&self, other: &SlackInteractionActionInfo) -> bool
fn eq(&self, other: &SlackInteractionActionInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackInteractionActionInfo) -> bool
fn ne(&self, other: &SlackInteractionActionInfo) -> bool
This method tests for !=.
impl StructuralPartialEq for SlackInteractionActionInfo
Auto Trait Implementations
impl RefUnwindSafe for SlackInteractionActionInfo
impl Send for SlackInteractionActionInfo
impl Sync for SlackInteractionActionInfo
impl Unpin for SlackInteractionActionInfo
impl UnwindSafe for SlackInteractionActionInfo
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