Struct slack_morphism::prelude::SlackStatefulStateParams
source · [−]pub struct SlackStatefulStateParams {
pub id: SlackViewId,
pub team_id: SlackTeamId,
pub state: Option<SlackViewState>,
pub hash: String,
pub previous_view_id: Option<SlackViewId>,
pub root_view_id: Option<SlackViewId>,
pub app_id: Option<SlackAppId>,
pub bot_id: Option<SlackBotId>,
}Fields
id: SlackViewIdteam_id: SlackTeamIdstate: Option<SlackViewState>hash: Stringprevious_view_id: Option<SlackViewId>root_view_id: Option<SlackViewId>app_id: Option<SlackAppId>bot_id: Option<SlackBotId>Implementations
sourceimpl SlackStatefulStateParams
impl SlackStatefulStateParams
pub fn new(
id: SlackViewId,
team_id: SlackTeamId,
hash: String
) -> SlackStatefulStateParams
pub fn id(&mut self, value: SlackViewId) -> &mut SlackStatefulStateParams
pub fn with_id(self, value: SlackViewId) -> SlackStatefulStateParams
pub fn team_id(&mut self, value: SlackTeamId) -> &mut SlackStatefulStateParams
pub fn with_team_id(self, value: SlackTeamId) -> SlackStatefulStateParams
pub fn state(&mut self, value: SlackViewState) -> &mut SlackStatefulStateParams
pub fn reset_state(&mut self) -> &mut SlackStatefulStateParams
pub fn mopt_state(
&mut self,
value: Option<SlackViewState>
) -> &mut SlackStatefulStateParams
pub fn with_state(self, value: SlackViewState) -> SlackStatefulStateParams
pub fn without_state(self) -> SlackStatefulStateParams
pub fn opt_state(
self,
value: Option<SlackViewState>
) -> SlackStatefulStateParams
pub fn hash(&mut self, value: String) -> &mut SlackStatefulStateParams
pub fn with_hash(self, value: String) -> SlackStatefulStateParams
pub fn previous_view_id(
&mut self,
value: SlackViewId
) -> &mut SlackStatefulStateParams
pub fn reset_previous_view_id(&mut self) -> &mut SlackStatefulStateParams
pub fn mopt_previous_view_id(
&mut self,
value: Option<SlackViewId>
) -> &mut SlackStatefulStateParams
pub fn with_previous_view_id(
self,
value: SlackViewId
) -> SlackStatefulStateParams
pub fn without_previous_view_id(self) -> SlackStatefulStateParams
pub fn opt_previous_view_id(
self,
value: Option<SlackViewId>
) -> SlackStatefulStateParams
pub fn root_view_id(
&mut self,
value: SlackViewId
) -> &mut SlackStatefulStateParams
pub fn reset_root_view_id(&mut self) -> &mut SlackStatefulStateParams
pub fn mopt_root_view_id(
&mut self,
value: Option<SlackViewId>
) -> &mut SlackStatefulStateParams
pub fn with_root_view_id(self, value: SlackViewId) -> SlackStatefulStateParams
pub fn without_root_view_id(self) -> SlackStatefulStateParams
pub fn opt_root_view_id(
self,
value: Option<SlackViewId>
) -> SlackStatefulStateParams
pub fn app_id(&mut self, value: SlackAppId) -> &mut SlackStatefulStateParams
pub fn reset_app_id(&mut self) -> &mut SlackStatefulStateParams
pub fn mopt_app_id(
&mut self,
value: Option<SlackAppId>
) -> &mut SlackStatefulStateParams
pub fn with_app_id(self, value: SlackAppId) -> SlackStatefulStateParams
pub fn without_app_id(self) -> SlackStatefulStateParams
pub fn opt_app_id(self, value: Option<SlackAppId>) -> SlackStatefulStateParams
pub fn bot_id(&mut self, value: SlackBotId) -> &mut SlackStatefulStateParams
pub fn reset_bot_id(&mut self) -> &mut SlackStatefulStateParams
pub fn mopt_bot_id(
&mut self,
value: Option<SlackBotId>
) -> &mut SlackStatefulStateParams
pub fn with_bot_id(self, value: SlackBotId) -> SlackStatefulStateParams
pub fn without_bot_id(self) -> SlackStatefulStateParams
pub fn opt_bot_id(self, value: Option<SlackBotId>) -> SlackStatefulStateParams
Trait Implementations
sourceimpl Clone for SlackStatefulStateParams
impl Clone for SlackStatefulStateParams
sourcefn clone(&self) -> SlackStatefulStateParams
fn clone(&self) -> SlackStatefulStateParams
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 SlackStatefulStateParams
impl Debug for SlackStatefulStateParams
sourceimpl<'de> Deserialize<'de> for SlackStatefulStateParams
impl<'de> Deserialize<'de> for SlackStatefulStateParams
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SlackStatefulStateParams, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackStatefulStateParams, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<SlackStatefulStateParamsInit> for SlackStatefulStateParams
impl From<SlackStatefulStateParamsInit> for SlackStatefulStateParams
sourcefn from(value: SlackStatefulStateParamsInit) -> SlackStatefulStateParams
fn from(value: SlackStatefulStateParamsInit) -> SlackStatefulStateParams
Performs the conversion.
sourceimpl PartialEq<SlackStatefulStateParams> for SlackStatefulStateParams
impl PartialEq<SlackStatefulStateParams> for SlackStatefulStateParams
sourcefn eq(&self, other: &SlackStatefulStateParams) -> bool
fn eq(&self, other: &SlackStatefulStateParams) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackStatefulStateParams) -> bool
fn ne(&self, other: &SlackStatefulStateParams) -> bool
This method tests for !=.
sourceimpl Serialize for SlackStatefulStateParams
impl Serialize for SlackStatefulStateParams
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 SlackStatefulStateParams
Auto Trait Implementations
impl RefUnwindSafe for SlackStatefulStateParams
impl Send for SlackStatefulStateParams
impl Sync for SlackStatefulStateParams
impl Unpin for SlackStatefulStateParams
impl UnwindSafe for SlackStatefulStateParams
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