mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
feat: add eq where partialeq is already and is possible
This commit is contained in:
parent
1877a16457
commit
32c267621e
3 changed files with 4 additions and 4 deletions
|
|
@ -217,7 +217,7 @@ impl CommonResponse for Response {
|
|||
}
|
||||
|
||||
/// Extra request settings for eco queries.
|
||||
#[derive(Debug, Default, Clone, PartialEq)]
|
||||
#[derive(Debug, Default, Clone, Eq, PartialEq)]
|
||||
pub struct EcoRequestSettings {
|
||||
hostname: Option<String>,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
|
|||
///
|
||||
/// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/net/NetworkIO.java#L122-L135)
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub struct ServerData {
|
||||
pub host: String,
|
||||
pub map: String,
|
||||
|
|
@ -27,7 +27,7 @@ pub struct ServerData {
|
|||
///
|
||||
/// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/game/Gamemode.java)
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub enum GameMode {
|
||||
Survival,
|
||||
Sandbox,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue