mirror of
https://git.mentality.rip/numas13/xash3d-master.git
synced 2025-01-22 12:54:24 +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")]
|
#[serde(tag = "status")]
|
||||||
enum ServerResultKind {
|
enum ServerResultKind {
|
||||||
#[serde(rename = "ok")]
|
#[serde(rename = "ok")]
|
||||||
Ok { info: ServerInfo },
|
Ok {
|
||||||
|
#[serde(flatten)]
|
||||||
|
info: ServerInfo,
|
||||||
|
},
|
||||||
#[serde(rename = "error")]
|
#[serde(rename = "error")]
|
||||||
Error { message: String },
|
Error { message: String },
|
||||||
#[serde(rename = "invalid")]
|
#[serde(rename = "invalid")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user