Struct slack_morphism::SlackReaction
source · pub struct SlackReaction {
pub name: String,
pub count: usize,
pub users: Vec<SlackUserId>,
}Fields
name: Stringcount: usizeusers: Vec<SlackUserId>Implementations
sourceimpl 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
sourceimpl Clone for SlackReaction
impl Clone for SlackReaction
sourcefn clone(&self) -> SlackReaction
fn clone(&self) -> SlackReaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SlackReaction
impl Debug for SlackReaction
sourceimpl<'de> Deserialize<'de> for SlackReaction
impl<'de> Deserialize<'de> for SlackReaction
sourcefn 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
sourceimpl From<SlackReactionInit> for SlackReaction
impl From<SlackReactionInit> for SlackReaction
sourcefn from(value: SlackReactionInit) -> Self
fn from(value: SlackReactionInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackReaction> for SlackReaction
impl PartialEq<SlackReaction> for SlackReaction
sourcefn eq(&self, other: &SlackReaction) -> bool
fn eq(&self, other: &SlackReaction) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more