pub struct TypingStatusNotification {
pub user_id: u64,
pub username: Option<String>,
pub channel_id: u64,
pub channel_type: u8,
pub is_typing: bool,
pub action_type: TypingActionType,
pub timestamp: i64,
}Expand description
输入状态变化通知(服务端推送给会话中的其他成员)
Fields§
§user_id: u64用户ID
username: Option<String>用户名(可选,用于显示)
channel_id: u64会话ID
channel_type: u8会话类型
is_typing: bool是否正在输入
action_type: TypingActionType输入动作类型
timestamp: i64时间戳
Trait Implementations§
Source§impl Clone for TypingStatusNotification
impl Clone for TypingStatusNotification
Source§fn clone(&self) -> TypingStatusNotification
fn clone(&self) -> TypingStatusNotification
Returns a duplicate 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 TypingStatusNotification
impl Debug for TypingStatusNotification
Source§impl<'de> Deserialize<'de> for TypingStatusNotification
impl<'de> Deserialize<'de> for TypingStatusNotification
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
Auto Trait Implementations§
impl Freeze for TypingStatusNotification
impl RefUnwindSafe for TypingStatusNotification
impl Send for TypingStatusNotification
impl Sync for TypingStatusNotification
impl Unpin for TypingStatusNotification
impl UnsafeUnpin for TypingStatusNotification
impl UnwindSafe for TypingStatusNotification
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