pub struct PushMessage {
pub message_id: String,
pub content: String,
pub message_type: MessageType,
pub timestamp: DateTime<Utc>,
pub metadata: HashMap<String, String>,
}Expand description
Push message structure 推送消息结构
Represents a message to be delivered to online users 表示要传递给在线用户的消息
Fields§
§message_id: StringUnique message identifier | 唯一消息标识符
content: StringMessage content | 消息内容
message_type: MessageTypeMessage type | 消息类型
timestamp: DateTime<Utc>Message timestamp | 消息时间戳
metadata: HashMap<String, String>Additional metadata | 额外元数据
Trait Implementations§
Source§impl Clone for PushMessage
impl Clone for PushMessage
Source§fn clone(&self) -> PushMessage
fn clone(&self) -> PushMessage
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 moreAuto Trait Implementations§
impl Freeze for PushMessage
impl RefUnwindSafe for PushMessage
impl Send for PushMessage
impl Sync for PushMessage
impl Unpin for PushMessage
impl UnwindSafe for PushMessage
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