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 payload | 推送载荷
Fields§
§message_id: StringMessage id | 消息 ID
content: StringMessage body | 消息正文
message_type: MessageTypeMessage kind | 消息类型
timestamp: DateTime<Utc>Event timestamp | 事件时间戳
metadata: HashMap<String, String>Extra key-value 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 (const: unstable) · 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 UnsafeUnpin 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