pub struct ChatRoomMsg<T = Value> {
pub type: ChatRoomMessageType,
pub oId: String,
pub time: String,
pub userOId: String,
pub userName: String,
pub userNickname: String,
pub userAvatarURL: String,
pub sysMetal: Vec<Metal>,
pub content: T,
pub md: String,
pub client: String,
pub via: ClientType,
}Expand description
聊天消息
Fields§
§type: ChatRoomMessageType§oId: String§time: String§userOId: String§userName: String§userNickname: String§userAvatarURL: String§sysMetal: Vec<Metal>§content: T§md: String§client: String§via: ClientTypeImplementations§
Trait Implementations§
Source§impl<T: Clone> Clone for ChatRoomMsg<T>
impl<T: Clone> Clone for ChatRoomMsg<T>
Source§fn clone(&self) -> ChatRoomMsg<T>
fn clone(&self) -> ChatRoomMsg<T>
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<T: Debug> Debug for ChatRoomMsg<T>
impl<T: Debug> Debug for ChatRoomMsg<T>
Source§impl<'de> Deserialize<'de> for ChatRoomMsg<Value>
impl<'de> Deserialize<'de> for ChatRoomMsg<Value>
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<T> Freeze for ChatRoomMsg<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChatRoomMsg<T>where
T: RefUnwindSafe,
impl<T> Send for ChatRoomMsg<T>where
T: Send,
impl<T> Sync for ChatRoomMsg<T>where
T: Sync,
impl<T> Unpin for ChatRoomMsg<T>where
T: Unpin,
impl<T> UnsafeUnpin for ChatRoomMsg<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ChatRoomMsg<T>where
T: UnwindSafe,
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