Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
ws-rst
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qlintonger xeno
ws-rst
Commits
ac9c7472
Commit
ac9c7472
authored
Feb 27, 2025
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除idle消息类型+123
parent
2eb43cfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
src/typing/message_typed.rs
+7
-1
No files found.
src/typing/message_typed.rs
View file @
ac9c7472
use
serde
::{
Deserialize
,
Serialize
};
use
serde_json
::
Value
;
// 定义一个函数来返回 msg_data 的默认值
fn
default_msg_data
()
->
Value
{
serde_json
::
json!
({})
}
// 定义消息结构
#[derive(Serialize,
Deserialize,
Debug)]
...
...
@@ -9,7 +15,7 @@ pub struct ClientMessageData {
pub
from_id
:
String
,
#[serde(rename
=
"fromName"
)]
pub
from_name
:
String
,
#[serde(rename
=
"msgData"
,
default)]
#[serde(rename
=
"msgData"
,
default
=
"default_msg_data"
)]
pub
msg_data
:
serde_json
::
Value
,
#[serde(rename
=
"toID"
)]
pub
to_id
:
String
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment