pub struct Reaction { /* private fields */ }Expand description
Represents a reaction to a Zulip message.
Implementations§
Source§impl Reaction
impl Reaction
Sourcepub fn emoji_name(&self) -> &str
pub fn emoji_name(&self) -> &str
Gets the Reaction emoji_name.
Sourcepub fn set_emoji_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_emoji_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the Reaction emoji_name.
Sourcepub fn with_emoji_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_emoji_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the Reaction emoji_name.
Sourcepub fn emoji_code(&self) -> &str
pub fn emoji_code(&self) -> &str
Gets the Reaction emoji_code.
Source§impl Reaction
impl Reaction
Sourcepub const fn reaction_type(&self) -> ReactionType
pub const fn reaction_type(&self) -> ReactionType
Gets the Reaction reaction_type.
Sourcepub fn set_reaction_type(&mut self, val: ReactionType)
pub fn set_reaction_type(&mut self, val: ReactionType)
Sets the Reaction reaction_type.
Sourcepub fn with_reaction_type(self, val: ReactionType) -> Self
pub fn with_reaction_type(self, val: ReactionType) -> Self
Builder function that sets the Reaction reaction_type.
Sourcepub fn set_user_id(&mut self, val: u64)
pub fn set_user_id(&mut self, val: u64)
Sets the Reaction user_id.
Sourcepub fn with_user_id(self, val: u64) -> Self
pub fn with_user_id(self, val: u64) -> Self
Builder function that sets the Reaction user_id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reaction
impl<'de> Deserialize<'de> for Reaction
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
impl Eq for Reaction
impl StructuralPartialEq for Reaction
Auto Trait Implementations§
impl Freeze for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnsafeUnpin for Reaction
impl UnwindSafe for Reaction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.