Struct slack_morphism::events::SlackAppMentionEvent
source · pub struct SlackAppMentionEvent {
pub user: SlackUserId,
pub channel: SlackChannelId,
pub content: SlackMessageContent,
pub origin: SlackMessageOrigin,
pub edited: Option<SlackMessageEdited>,
}
Fields§
§user: SlackUserId
§channel: SlackChannelId
§content: SlackMessageContent
§origin: SlackMessageOrigin
§edited: Option<SlackMessageEdited>
Implementations§
source§impl SlackAppMentionEvent
impl SlackAppMentionEvent
pub fn new( user: SlackUserId, channel: SlackChannelId, content: SlackMessageContent, origin: SlackMessageOrigin ) -> 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 content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn with_content(self, value: SlackMessageContent) -> Self
pub fn origin(&mut self, value: SlackMessageOrigin) -> &mut Self
pub fn with_origin(self, value: SlackMessageOrigin) -> Self
pub fn edited(&mut self, value: SlackMessageEdited) -> &mut Self
pub fn reset_edited(&mut self) -> &mut Self
pub fn mopt_edited(&mut self, value: Option<SlackMessageEdited>) -> &mut Self
pub fn with_edited(self, value: SlackMessageEdited) -> Self
pub fn without_edited(self) -> Self
pub fn opt_edited(self, value: Option<SlackMessageEdited>) -> Self
Trait Implementations§
source§impl Clone for SlackAppMentionEvent
impl Clone for SlackAppMentionEvent
source§fn clone(&self) -> SlackAppMentionEvent
fn clone(&self) -> SlackAppMentionEvent
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 SlackAppMentionEvent
impl Debug for SlackAppMentionEvent
source§impl<'de> Deserialize<'de> for SlackAppMentionEvent
impl<'de> Deserialize<'de> for SlackAppMentionEvent
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<SlackAppMentionEventInit> for SlackAppMentionEvent
impl From<SlackAppMentionEventInit> for SlackAppMentionEvent
source§fn from(value: SlackAppMentionEventInit) -> Self
fn from(value: SlackAppMentionEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackAppMentionEvent
impl PartialEq for SlackAppMentionEvent
source§fn eq(&self, other: &SlackAppMentionEvent) -> bool
fn eq(&self, other: &SlackAppMentionEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackAppMentionEvent
impl Serialize for SlackAppMentionEvent
impl StructuralPartialEq for SlackAppMentionEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackAppMentionEvent
impl Send for SlackAppMentionEvent
impl Sync for SlackAppMentionEvent
impl Unpin for SlackAppMentionEvent
impl UnwindSafe for SlackAppMentionEvent
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