Struct slack_morphism::SlackReaction
source · pub struct SlackReaction {
pub name: String,
pub count: usize,
pub users: Vec<SlackUserId>,
}Fields§
§name: String§count: usize§users: Vec<SlackUserId>Implementations§
source§impl SlackReaction
impl SlackReaction
pub fn new(name: String, count: usize, users: Vec<SlackUserId>) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn with_name(self, value: String) -> 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.