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§impl Serialize for SlackStatefulStateParams
impl Serialize for SlackStatefulStateParams
impl StructuralPartialEq for SlackStatefulStateParams
Auto Trait Implementations§
impl Freeze for SlackStatefulStateParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)