feat: add eq where partialeq is already and is possible

This commit is contained in:
CosminPerRam 2024-05-01 18:48:11 +03:00
parent 1877a16457
commit 32c267621e
3 changed files with 4 additions and 4 deletions

View file

@ -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>,
} }

View file

@ -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,

View file

@ -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,