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
Sourcepub fn new(
name: SlackReactionName,
count: usize,
users: Vec<SlackUserId>,
) -> Self
pub fn new( name: SlackReactionName, count: usize, users: Vec<SlackUserId>, ) -> Self
Creates a new SlackReaction from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn name(&mut self, value: SlackReactionName) -> &mut Self
pub fn name(&mut self, value: SlackReactionName) -> &mut Self
Sets name to value.
Sourcepub fn with_name(self, value: SlackReactionName) -> Self
pub fn with_name(self, value: SlackReactionName) -> Self
Returns self with name set to value.
Sourcepub fn with_count(self, value: usize) -> Self
pub fn with_count(self, value: usize) -> Self
Returns self with count set to value.
Sourcepub fn users(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn users(&mut self, value: Vec<SlackUserId>) -> &mut Self
Sets users to value.
Sourcepub fn with_users(self, value: Vec<SlackUserId>) -> Self
pub fn with_users(self, value: Vec<SlackUserId>) -> Self
Returns self with users set to value.
Trait Implementations§
Source§impl Clone for SlackReaction
impl Clone for SlackReaction
Source§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 UnsafeUnpin 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