Struct slack_morphism::prelude::SlackAppHomeOpenedEvent
source · pub struct SlackAppHomeOpenedEvent {
pub user: SlackUserId,
pub channel: SlackChannelId,
pub tab: String,
pub view: Option<SlackView>,
}
Fields§
§user: SlackUserId
§channel: SlackChannelId
§tab: String
§view: Option<SlackView>
Implementations§
source§impl SlackAppHomeOpenedEvent
impl SlackAppHomeOpenedEvent
pub fn new(user: SlackUserId, channel: SlackChannelId, tab: String) -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn tab(&mut self, value: String) -> &mut Self
pub fn with_tab(self, value: String) -> Self
pub fn view(&mut self, value: SlackView) -> &mut Self
pub fn reset_view(&mut self) -> &mut Self
pub fn mopt_view(&mut self, value: Option<SlackView>) -> &mut Self
pub fn with_view(self, value: SlackView) -> Self
pub fn without_view(self) -> Self
pub fn opt_view(self, value: Option<SlackView>) -> Self
Trait Implementations§
source§impl Clone for SlackAppHomeOpenedEvent
impl Clone for SlackAppHomeOpenedEvent
source§fn clone(&self) -> SlackAppHomeOpenedEvent
fn clone(&self) -> SlackAppHomeOpenedEvent
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 SlackAppHomeOpenedEvent
impl Debug for SlackAppHomeOpenedEvent
source§impl<'de> Deserialize<'de> for SlackAppHomeOpenedEvent
impl<'de> Deserialize<'de> for SlackAppHomeOpenedEvent
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<SlackAppHomeOpenedEventInit> for SlackAppHomeOpenedEvent
impl From<SlackAppHomeOpenedEventInit> for SlackAppHomeOpenedEvent
source§fn from(value: SlackAppHomeOpenedEventInit) -> Self
fn from(value: SlackAppHomeOpenedEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackAppHomeOpenedEvent
impl PartialEq for SlackAppHomeOpenedEvent
source§fn eq(&self, other: &SlackAppHomeOpenedEvent) -> bool
fn eq(&self, other: &SlackAppHomeOpenedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackAppHomeOpenedEvent
impl Serialize for SlackAppHomeOpenedEvent
impl StructuralPartialEq for SlackAppHomeOpenedEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackAppHomeOpenedEvent
impl Send for SlackAppHomeOpenedEvent
impl Sync for SlackAppHomeOpenedEvent
impl Unpin for SlackAppHomeOpenedEvent
impl UnwindSafe for SlackAppHomeOpenedEvent
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