mirror of
https://git.mentality.rip/numas13/xash3d-master.git
synced 2025-01-22 04:44:31 +00:00
query: flatten server info for Json output
This commit is contained in:
parent
214948cba9
commit
d7ffcd72a3
@ -34,7 +34,10 @@ enum Error {
|
||||
#[serde(tag = "status")]
|
||||
enum ServerResultKind {
|
||||
#[serde(rename = "ok")]
|
||||
Ok { info: ServerInfo },
|
||||
Ok {
|
||||
#[serde(flatten)]
|
||||
info: ServerInfo,
|
||||
},
|
||||
#[serde(rename = "error")]
|
||||
Error { message: String },
|
||||
#[serde(rename = "invalid")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user