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§impl Serialize for SlackReaction
impl Serialize for SlackReaction
impl StructuralPartialEq for SlackReaction
Auto Trait Implementations§
impl Freeze for SlackReaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)