Struct slack_morphism::prelude::blocks::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: SlackViewId
§team_id: SlackTeamId
§state: Option<SlackViewState>
§hash: String
§previous_view_id: Option<SlackViewId>
§root_view_id: Option<SlackViewId>
§app_id: Option<SlackAppId>
§bot_id: Option<SlackBotId>
Implementations§
source§impl SlackStatefulStateParams
impl SlackStatefulStateParams
pub fn new(id: SlackViewId, team_id: SlackTeamId, hash: String) -> Self
pub fn id(&mut self, value: SlackViewId) -> &mut Self
pub fn with_id(self, value: SlackViewId) -> Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn state(&mut self, value: SlackViewState) -> &mut Self
pub fn reset_state(&mut self) -> &mut Self
pub fn mopt_state(&mut self, value: Option<SlackViewState>) -> &mut Self
pub fn with_state(self, value: SlackViewState) -> Self
pub fn without_state(self) -> Self
pub fn opt_state(self, value: Option<SlackViewState>) -> Self
pub fn hash(&mut self, value: String) -> &mut Self
pub fn with_hash(self, value: String) -> Self
pub fn previous_view_id(&mut self, value: SlackViewId) -> &mut Self
pub fn reset_previous_view_id(&mut self) -> &mut Self
pub fn mopt_previous_view_id(&mut self, value: Option<SlackViewId>) -> &mut Self
pub fn with_previous_view_id(self, value: SlackViewId) -> Self
pub fn without_previous_view_id(self) -> Self
pub fn opt_previous_view_id(self, value: Option<SlackViewId>) -> Self
pub fn root_view_id(&mut self, value: SlackViewId) -> &mut Self
pub fn reset_root_view_id(&mut self) -> &mut Self
pub fn mopt_root_view_id(&mut self, value: Option<SlackViewId>) -> &mut Self
pub fn with_root_view_id(self, value: SlackViewId) -> Self
pub fn without_root_view_id(self) -> Self
pub fn opt_root_view_id(self, value: Option<SlackViewId>) -> Self
pub fn app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn reset_app_id(&mut self) -> &mut Self
pub fn mopt_app_id(&mut self, value: Option<SlackAppId>) -> &mut Self
pub fn with_app_id(self, value: SlackAppId) -> Self
pub fn without_app_id(self) -> Self
pub fn opt_app_id(self, value: Option<SlackAppId>) -> Self
pub fn bot_id(&mut self, value: SlackBotId) -> &mut Self
pub fn reset_bot_id(&mut self) -> &mut Self
pub fn mopt_bot_id(&mut self, value: Option<SlackBotId>) -> &mut Self
pub fn with_bot_id(self, value: SlackBotId) -> Self
pub fn without_bot_id(self) -> Self
pub fn opt_bot_id(self, value: Option<SlackBotId>) -> Self
Trait Implementations§
source§impl Clone for SlackStatefulStateParams
impl Clone for SlackStatefulStateParams
source§fn clone(&self) -> SlackStatefulStateParams
fn clone(&self) -> SlackStatefulStateParams
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 SlackStatefulStateParams
impl Debug for SlackStatefulStateParams
source§impl<'de> Deserialize<'de> for SlackStatefulStateParams
impl<'de> Deserialize<'de> for SlackStatefulStateParams
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<SlackStatefulStateParamsInit> for SlackStatefulStateParams
impl From<SlackStatefulStateParamsInit> for SlackStatefulStateParams
source§fn from(value: SlackStatefulStateParamsInit) -> Self
fn from(value: SlackStatefulStateParamsInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackStatefulStateParams
impl PartialEq for SlackStatefulStateParams
source§fn 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 ==
.source§impl Serialize for SlackStatefulStateParams
impl Serialize for SlackStatefulStateParams
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§
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