Struct slack_morphism::prelude::SlackViewStateValue
source · [−]pub struct SlackViewStateValue {
pub action_type: SlackActionType,
pub value: Option<String>,
pub selected_date: Option<String>,
pub selected_time: Option<String>,
pub selected_conversation: Option<SlackConversationId>,
pub selected_channel: Option<SlackChannelId>,
pub selected_user: Option<SlackUserId>,
pub selected_option: Option<SlackViewStateValueSelectedOption>,
pub selected_conversations: Option<Vec<SlackConversationId, Global>>,
pub selected_users: Option<Vec<SlackUserId, Global>>,
pub selected_options: Option<Vec<SlackViewStateValueSelectedOption, Global>>,
}Fields
action_type: SlackActionTypevalue: Option<String>selected_date: Option<String>selected_time: Option<String>selected_conversation: Option<SlackConversationId>selected_channel: Option<SlackChannelId>selected_user: Option<SlackUserId>selected_option: Option<SlackViewStateValueSelectedOption>selected_conversations: Option<Vec<SlackConversationId, Global>>selected_users: Option<Vec<SlackUserId, Global>>selected_options: Option<Vec<SlackViewStateValueSelectedOption, Global>>Implementations
sourceimpl SlackViewStateValue
impl SlackViewStateValue
pub fn new(action_type: SlackActionType) -> SlackViewStateValue
pub fn action_type(&mut self, value: SlackActionType) -> &mut SlackViewStateValue
pub fn with_action_type(self, value: SlackActionType) -> SlackViewStateValue
pub fn value(&mut self, value: String) -> &mut SlackViewStateValue
pub fn reset_value(&mut self) -> &mut SlackViewStateValue
pub fn mopt_value(&mut self, value: Option<String>) -> &mut SlackViewStateValue
pub fn with_value(self, value: String) -> SlackViewStateValue
pub fn without_value(self) -> SlackViewStateValue
pub fn opt_value(self, value: Option<String>) -> SlackViewStateValue
pub fn selected_date(&mut self, value: String) -> &mut SlackViewStateValue
pub fn reset_selected_date(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_date(
&mut self,
value: Option<String>
) -> &mut SlackViewStateValue
pub fn with_selected_date(self, value: String) -> SlackViewStateValue
pub fn without_selected_date(self) -> SlackViewStateValue
pub fn opt_selected_date(self, value: Option<String>) -> SlackViewStateValue
pub fn selected_time(&mut self, value: String) -> &mut SlackViewStateValue
pub fn reset_selected_time(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_time(
&mut self,
value: Option<String>
) -> &mut SlackViewStateValue
pub fn with_selected_time(self, value: String) -> SlackViewStateValue
pub fn without_selected_time(self) -> SlackViewStateValue
pub fn opt_selected_time(self, value: Option<String>) -> SlackViewStateValue
pub fn selected_conversation(
&mut self,
value: SlackConversationId
) -> &mut SlackViewStateValue
pub fn reset_selected_conversation(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_conversation(
&mut self,
value: Option<SlackConversationId>
) -> &mut SlackViewStateValue
pub fn with_selected_conversation(
self,
value: SlackConversationId
) -> SlackViewStateValue
pub fn without_selected_conversation(self) -> SlackViewStateValue
pub fn opt_selected_conversation(
self,
value: Option<SlackConversationId>
) -> SlackViewStateValue
pub fn selected_channel(
&mut self,
value: SlackChannelId
) -> &mut SlackViewStateValue
pub fn reset_selected_channel(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_channel(
&mut self,
value: Option<SlackChannelId>
) -> &mut SlackViewStateValue
pub fn with_selected_channel(self, value: SlackChannelId) -> SlackViewStateValue
pub fn without_selected_channel(self) -> SlackViewStateValue
pub fn opt_selected_channel(
self,
value: Option<SlackChannelId>
) -> SlackViewStateValue
pub fn selected_user(&mut self, value: SlackUserId) -> &mut SlackViewStateValue
pub fn reset_selected_user(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_user(
&mut self,
value: Option<SlackUserId>
) -> &mut SlackViewStateValue
pub fn with_selected_user(self, value: SlackUserId) -> SlackViewStateValue
pub fn without_selected_user(self) -> SlackViewStateValue
pub fn opt_selected_user(self, value: Option<SlackUserId>) -> SlackViewStateValue
pub fn selected_option(
&mut self,
value: SlackViewStateValueSelectedOption
) -> &mut SlackViewStateValue
pub fn reset_selected_option(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_option(
&mut self,
value: Option<SlackViewStateValueSelectedOption>
) -> &mut SlackViewStateValue
pub fn with_selected_option(
self,
value: SlackViewStateValueSelectedOption
) -> SlackViewStateValue
pub fn without_selected_option(self) -> SlackViewStateValue
pub fn opt_selected_option(
self,
value: Option<SlackViewStateValueSelectedOption>
) -> SlackViewStateValue
pub fn selected_conversations(
&mut self,
value: Vec<SlackConversationId, Global>
) -> &mut SlackViewStateValue
pub fn reset_selected_conversations(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_conversations(
&mut self,
value: Option<Vec<SlackConversationId, Global>>
) -> &mut SlackViewStateValue
pub fn with_selected_conversations(
self,
value: Vec<SlackConversationId, Global>
) -> SlackViewStateValue
pub fn without_selected_conversations(self) -> SlackViewStateValue
pub fn opt_selected_conversations(
self,
value: Option<Vec<SlackConversationId, Global>>
) -> SlackViewStateValue
pub fn selected_users(
&mut self,
value: Vec<SlackUserId, Global>
) -> &mut SlackViewStateValue
pub fn reset_selected_users(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_users(
&mut self,
value: Option<Vec<SlackUserId, Global>>
) -> &mut SlackViewStateValue
pub fn with_selected_users(
self,
value: Vec<SlackUserId, Global>
) -> SlackViewStateValue
pub fn without_selected_users(self) -> SlackViewStateValue
pub fn opt_selected_users(
self,
value: Option<Vec<SlackUserId, Global>>
) -> SlackViewStateValue
pub fn selected_options(
&mut self,
value: Vec<SlackViewStateValueSelectedOption, Global>
) -> &mut SlackViewStateValue
pub fn reset_selected_options(&mut self) -> &mut SlackViewStateValue
pub fn mopt_selected_options(
&mut self,
value: Option<Vec<SlackViewStateValueSelectedOption, Global>>
) -> &mut SlackViewStateValue
pub fn with_selected_options(
self,
value: Vec<SlackViewStateValueSelectedOption, Global>
) -> SlackViewStateValue
pub fn without_selected_options(self) -> SlackViewStateValue
pub fn opt_selected_options(
self,
value: Option<Vec<SlackViewStateValueSelectedOption, Global>>
) -> SlackViewStateValue
Trait Implementations
sourceimpl Clone for SlackViewStateValue
impl Clone for SlackViewStateValue
sourcefn clone(&self) -> SlackViewStateValue
fn clone(&self) -> SlackViewStateValue
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 SlackViewStateValue
impl Debug for SlackViewStateValue
sourceimpl<'de> Deserialize<'de> for SlackViewStateValue
impl<'de> Deserialize<'de> for SlackViewStateValue
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SlackViewStateValue, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackViewStateValue, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<SlackViewStateValueInit> for SlackViewStateValue
impl From<SlackViewStateValueInit> for SlackViewStateValue
sourcefn from(value: SlackViewStateValueInit) -> SlackViewStateValue
fn from(value: SlackViewStateValueInit) -> SlackViewStateValue
Converts to this type from the input type.
sourceimpl PartialEq<SlackViewStateValue> for SlackViewStateValue
impl PartialEq<SlackViewStateValue> for SlackViewStateValue
sourcefn eq(&self, other: &SlackViewStateValue) -> bool
fn eq(&self, other: &SlackViewStateValue) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackViewStateValue) -> bool
fn ne(&self, other: &SlackViewStateValue) -> bool
This method tests for !=.
sourceimpl Serialize for SlackViewStateValue
impl Serialize for SlackViewStateValue
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 SlackViewStateValue
Auto Trait Implementations
impl RefUnwindSafe for SlackViewStateValue
impl Send for SlackViewStateValue
impl Sync for SlackViewStateValue
impl Unpin for SlackViewStateValue
impl UnwindSafe for SlackViewStateValue
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