Struct slack_morphism::prelude::SlackReactionAddedEvent
source · pub struct SlackReactionAddedEvent {
pub user: SlackUserId,
pub reaction: SlackReactionName,
pub item_user: Option<SlackUserId>,
pub item: SlackReactionsItem,
pub event_ts: SlackTs,
}
Fields§
§user: SlackUserId
§reaction: SlackReactionName
§item_user: Option<SlackUserId>
§item: SlackReactionsItem
§event_ts: SlackTs
Implementations§
source§impl SlackReactionAddedEvent
impl SlackReactionAddedEvent
pub fn new( user: SlackUserId, reaction: SlackReactionName, item: SlackReactionsItem, event_ts: SlackTs ) -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
pub fn reaction(&mut self, value: SlackReactionName) -> &mut Self
pub fn with_reaction(self, value: SlackReactionName) -> Self
pub fn item_user(&mut self, value: SlackUserId) -> &mut Self
pub fn reset_item_user(&mut self) -> &mut Self
pub fn mopt_item_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn with_item_user(self, value: SlackUserId) -> Self
pub fn without_item_user(self) -> Self
pub fn opt_item_user(self, value: Option<SlackUserId>) -> Self
pub fn item(&mut self, value: SlackReactionsItem) -> &mut Self
pub fn with_item(self, value: SlackReactionsItem) -> Self
pub fn event_ts(&mut self, value: SlackTs) -> &mut Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Trait Implementations§
source§impl Clone for SlackReactionAddedEvent
impl Clone for SlackReactionAddedEvent
source§fn clone(&self) -> SlackReactionAddedEvent
fn clone(&self) -> SlackReactionAddedEvent
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 SlackReactionAddedEvent
impl Debug for SlackReactionAddedEvent
source§impl<'de> Deserialize<'de> for SlackReactionAddedEvent
impl<'de> Deserialize<'de> for SlackReactionAddedEvent
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<SlackReactionAddedEventInit> for SlackReactionAddedEvent
impl From<SlackReactionAddedEventInit> for SlackReactionAddedEvent
source§fn from(value: SlackReactionAddedEventInit) -> Self
fn from(value: SlackReactionAddedEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackReactionAddedEvent
impl PartialEq for SlackReactionAddedEvent
source§fn eq(&self, other: &SlackReactionAddedEvent) -> bool
fn eq(&self, other: &SlackReactionAddedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackReactionAddedEvent
impl Serialize for SlackReactionAddedEvent
impl StructuralPartialEq for SlackReactionAddedEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackReactionAddedEvent
impl Send for SlackReactionAddedEvent
impl Sync for SlackReactionAddedEvent
impl Unpin for SlackReactionAddedEvent
impl UnwindSafe for SlackReactionAddedEvent
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