Struct slack_morphism::SlackReaction
source · pub struct SlackReaction {
pub name: SlackReactionName,
pub count: usize,
pub users: Vec<SlackUserId>,
}
Fields§
§name: SlackReactionName
§count: usize
§users: Vec<SlackUserId>
Implementations§
source§impl SlackReaction
impl SlackReaction
pub fn new( name: SlackReactionName, count: usize, users: Vec<SlackUserId> ) -> Self
pub fn name(&mut self, value: SlackReactionName) -> &mut Self
pub fn with_name(self, value: SlackReactionName) -> Self
pub fn count(&mut self, value: usize) -> &mut Self
pub fn with_count(self, value: usize) -> Self
pub fn users(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn with_users(self, value: Vec<SlackUserId>) -> Self
Trait Implementations§
source§impl Clone for SlackReaction
impl Clone for SlackReaction
source§fn clone(&self) -> SlackReaction
fn clone(&self) -> SlackReaction
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 SlackReaction
impl Debug for SlackReaction
source§impl<'de> Deserialize<'de> for SlackReaction
impl<'de> Deserialize<'de> for SlackReaction
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<SlackReactionInit> for SlackReaction
impl From<SlackReactionInit> for SlackReaction
source§fn from(value: SlackReactionInit) -> Self
fn from(value: SlackReactionInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackReaction
impl PartialEq for SlackReaction
source§fn eq(&self, other: &SlackReaction) -> bool
fn eq(&self, other: &SlackReaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackReaction
impl Serialize for SlackReaction
impl StructuralPartialEq for SlackReaction
Auto Trait Implementations§
impl RefUnwindSafe for SlackReaction
impl Send for SlackReaction
impl Sync for SlackReaction
impl Unpin for SlackReaction
impl UnwindSafe for SlackReaction
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