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: SlackTsImplementations§
Source§impl SlackReactionAddedEvent
impl SlackReactionAddedEvent
Sourcepub fn new(
user: SlackUserId,
reaction: SlackReactionName,
item: SlackReactionsItem,
event_ts: SlackTs,
) -> Self
pub fn new( user: SlackUserId, reaction: SlackReactionName, item: SlackReactionsItem, event_ts: SlackTs, ) -> Self
Creates a new SlackReactionAddedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to value.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to value.
Sourcepub fn reaction(&mut self, value: SlackReactionName) -> &mut Self
pub fn reaction(&mut self, value: SlackReactionName) -> &mut Self
Sets reaction to value.
Sourcepub fn with_reaction(self, value: SlackReactionName) -> Self
pub fn with_reaction(self, value: SlackReactionName) -> Self
Returns self with reaction set to value.
Sourcepub fn item_user(&mut self, value: SlackUserId) -> &mut Self
pub fn item_user(&mut self, value: SlackUserId) -> &mut Self
Sets item_user to Some(value).
Sourcepub fn reset_item_user(&mut self) -> &mut Self
pub fn reset_item_user(&mut self) -> &mut Self
Sets item_user to None.
Sourcepub fn mopt_item_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_item_user(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets item_user to the given Option.
Sourcepub fn with_item_user(self, value: SlackUserId) -> Self
pub fn with_item_user(self, value: SlackUserId) -> Self
Returns self with item_user set to Some(value).
Sourcepub fn without_item_user(self) -> Self
pub fn without_item_user(self) -> Self
Returns self with item_user set to None.
Sourcepub fn opt_item_user(self, value: Option<SlackUserId>) -> Self
pub fn opt_item_user(self, value: Option<SlackUserId>) -> Self
Returns self with item_user set to the given Option.
Sourcepub fn item(&mut self, value: SlackReactionsItem) -> &mut Self
pub fn item(&mut self, value: SlackReactionsItem) -> &mut Self
Sets item to value.
Sourcepub fn with_item(self, value: SlackReactionsItem) -> Self
pub fn with_item(self, value: SlackReactionsItem) -> Self
Returns self with item set to value.
Sourcepub fn with_event_ts(self, value: SlackTs) -> Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Returns self with event_ts set to value.
Trait Implementations§
Source§impl Clone for SlackReactionAddedEvent
impl Clone for SlackReactionAddedEvent
Source§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§impl Serialize for SlackReactionAddedEvent
impl Serialize for SlackReactionAddedEvent
impl StructuralPartialEq for SlackReactionAddedEvent
Auto Trait Implementations§
impl Freeze for SlackReactionAddedEvent
impl RefUnwindSafe for SlackReactionAddedEvent
impl Send for SlackReactionAddedEvent
impl Sync for SlackReactionAddedEvent
impl Unpin for SlackReactionAddedEvent
impl UnsafeUnpin 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