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.
|
/// Extra request settings for eco queries.
|
||||||
#[derive(Debug, Default, Clone, PartialEq)]
|
#[derive(Debug, Default, Clone, Eq, PartialEq)]
|
||||||
pub struct EcoRequestSettings {
|
pub struct EcoRequestSettings {
|
||||||
hostname: Option<String>,
|
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)
|
/// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/net/NetworkIO.java#L122-L135)
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||||
pub struct ServerData {
|
pub struct ServerData {
|
||||||
pub host: String,
|
pub host: String,
|
||||||
pub map: 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)
|
/// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/game/Gamemode.java)
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||||
pub enum GameMode {
|
pub enum GameMode {
|
||||||
Survival,
|
Survival,
|
||||||
Sandbox,
|
Sandbox,
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ impl HttpProtocol {
|
||||||
/// .hostname(String::from("test.com"))
|
/// .hostname(String::from("test.com"))
|
||||||
/// .header(String::from("Authorization"), String::from("Bearer Token"));
|
/// .header(String::from("Authorization"), String::from("Bearer Token"));
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Debug, Default, Clone, PartialEq)]
|
#[derive(Debug, Default, Clone, Eq, PartialEq)]
|
||||||
pub struct HttpSettings<S: Into<String>> {
|
pub struct HttpSettings<S: Into<String>> {
|
||||||
/// Choose whether to use HTTP or HTTPS.
|
/// Choose whether to use HTTP or HTTPS.
|
||||||
pub protocol: HttpProtocol,
|
pub protocol: HttpProtocol,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue