Commit 5c288a44 authored by xuwencheng's avatar xuwencheng

upgrade

parent 1bf46132
use std::collections::HashSet;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::socket::protocol::Qos; use crate::socket::protocol::Qos;
...@@ -33,7 +35,7 @@ pub struct PushMessage { ...@@ -33,7 +35,7 @@ pub struct PushMessage {
#[derive(Debug, Serialize, Deserialize)] #[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct DeviceMessage { pub struct DeviceMessage {
pub devices: Vec<String>, pub devices: HashSet<String>,
pub business_type: i32, pub business_type: i32,
pub message_id: i64, pub message_id: i64,
pub key: Option<String>, pub key: Option<String>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment