mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Remove serde derives Generic Player and Response
This commit is contained in:
parent
1e083c2df7
commit
b584e11336
2 changed files with 2 additions and 4 deletions
|
|
@ -8,8 +8,8 @@ Protocols:
|
|||
the hostname, `protocol_version` defaults to -1.
|
||||
|
||||
Generics:
|
||||
- Added derives to `GenericResponse` (serde), `GenericPlayer` (serde), `ProprietaryProtocol`, `CommonResponseJson`,
|
||||
`CommonPlayerJson`, `TimeoutSettings`, `ExtraRequestSettings`.
|
||||
- Added standard derives to `ProprietaryProtocol`, `CommonResponseJson`, `CommonPlayerJson`, `TimeoutSettings` and
|
||||
`ExtraRequestSettings`.
|
||||
|
||||
### Breaking...
|
||||
None, yaay!
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ pub enum Protocol {
|
|||
}
|
||||
|
||||
/// All response types
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum GenericResponse<'a> {
|
||||
GameSpy(gamespy::VersionedResponse<'a>),
|
||||
|
|
@ -45,7 +44,6 @@ pub enum GenericResponse<'a> {
|
|||
}
|
||||
|
||||
/// All player types
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum GenericPlayer<'a> {
|
||||
Valve(&'a valve::ServerPlayer),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue