pub struct TypingSignal {
pub channel_id: ChannelId,
pub member_ids: Vec<MemberId>,
pub count: Option<u32>,
}Expand description
signal.typing live event (§10.5): {channel_id, member_ids} in a named channel,
{channel_id, count} in an anonymous one (who is typing is never sent there).
Fields§
§channel_id: ChannelIdThe channel.
member_ids: Vec<MemberId>Members typing in it (named channels); absent in anonymous ones.
count: Option<u32>How many others are typing (anonymous channels): 1, 2, or 3 meaning “three or
more” (TYPING_COUNT_CAP).
Trait Implementations§
Source§impl Clone for TypingSignal
impl Clone for TypingSignal
Source§fn clone(&self) -> TypingSignal
fn clone(&self) -> TypingSignal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypingSignal
impl Debug for TypingSignal
Source§impl<'de> Deserialize<'de> for TypingSignal
impl<'de> Deserialize<'de> for TypingSignal
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 TypingSignal
Source§impl PartialEq for TypingSignal
impl PartialEq for TypingSignal
Source§impl Serialize for TypingSignal
impl Serialize for TypingSignal
impl StructuralPartialEq for TypingSignal
Auto Trait Implementations§
impl Freeze for TypingSignal
impl RefUnwindSafe for TypingSignal
impl Send for TypingSignal
impl Sync for TypingSignal
impl Unpin for TypingSignal
impl UnsafeUnpin for TypingSignal
impl UnwindSafe for TypingSignal
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