Struct slack_morphism::prelude::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
) -> SlackInteractionActionInfo
pub fn action_type(
&mut self,
value: SlackActionType
) -> &mut SlackInteractionActionInfo
pub fn with_action_type(
self,
value: SlackActionType
) -> SlackInteractionActionInfo
pub fn action_id(
&mut self,
value: SlackActionId
) -> &mut SlackInteractionActionInfo
pub fn with_action_id(self, value: SlackActionId) -> SlackInteractionActionInfo
pub fn block_id(
&mut self,
value: SlackBlockId
) -> &mut SlackInteractionActionInfo
pub fn reset_block_id(&mut self) -> &mut SlackInteractionActionInfo
pub fn mopt_block_id(
&mut self,
value: Option<SlackBlockId>
) -> &mut SlackInteractionActionInfo
pub fn with_block_id(self, value: SlackBlockId) -> SlackInteractionActionInfo
pub fn without_block_id(self) -> SlackInteractionActionInfo
pub fn opt_block_id(
self,
value: Option<SlackBlockId>
) -> SlackInteractionActionInfo
pub fn text(&mut self, value: SlackBlockText) -> &mut SlackInteractionActionInfo
pub fn reset_text(&mut self) -> &mut SlackInteractionActionInfo
pub fn mopt_text(
&mut self,
value: Option<SlackBlockText>
) -> &mut SlackInteractionActionInfo
pub fn with_text(self, value: SlackBlockText) -> SlackInteractionActionInfo
pub fn without_text(self) -> SlackInteractionActionInfo
pub fn opt_text(
self,
value: Option<SlackBlockText>
) -> SlackInteractionActionInfo
pub fn value(&mut self, value: String) -> &mut SlackInteractionActionInfo
pub fn reset_value(&mut self) -> &mut SlackInteractionActionInfo
pub fn mopt_value(
&mut self,
value: Option<String>
) -> &mut SlackInteractionActionInfo
pub fn with_value(self, value: String) -> SlackInteractionActionInfo
pub fn without_value(self) -> SlackInteractionActionInfo
pub fn opt_value(self, value: Option<String>) -> SlackInteractionActionInfo
pub fn selected_option(
&mut self,
value: SlackBlockChoiceItem<SlackBlockText>
) -> &mut SlackInteractionActionInfo
pub fn reset_selected_option(&mut self) -> &mut SlackInteractionActionInfo
pub fn mopt_selected_option(
&mut self,
value: Option<SlackBlockChoiceItem<SlackBlockText>>
) -> &mut SlackInteractionActionInfo
pub fn with_selected_option(
self,
value: SlackBlockChoiceItem<SlackBlockText>
) -> SlackInteractionActionInfo
pub fn without_selected_option(self) -> SlackInteractionActionInfo
pub fn opt_selected_option(
self,
value: Option<SlackBlockChoiceItem<SlackBlockText>>
) -> SlackInteractionActionInfo
pub fn action_ts(&mut self, value: SlackTs) -> &mut SlackInteractionActionInfo
pub fn reset_action_ts(&mut self) -> &mut SlackInteractionActionInfo
pub fn mopt_action_ts(
&mut self,
value: Option<SlackTs>
) -> &mut SlackInteractionActionInfo
pub fn with_action_ts(self, value: SlackTs) -> SlackInteractionActionInfo
pub fn without_action_ts(self) -> SlackInteractionActionInfo
pub fn opt_action_ts(self, value: Option<SlackTs>) -> SlackInteractionActionInfo
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<SlackInteractionActionInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackInteractionActionInfo, <__D as Deserializer<'de>>::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) -> SlackInteractionActionInfo
fn from(value: SlackInteractionActionInfoInit) -> SlackInteractionActionInfo
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 !=.
sourceimpl Serialize for SlackInteractionActionInfo
impl Serialize for SlackInteractionActionInfo
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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