From a412b6da979eee2562a307794f9320e59197700d Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 16 Jul 2024 20:24:18 +0000 Subject: [PATCH] Autogenerated update for https://git.itzana.me/StrafesNET/protobufs/compare/423ef695efe7f028eb03d767cb968af13022f7d0...dbec402e18d3bf16f3fc99c1bba4765c7ce63936 --- bots/bots.rs | 8 ++++++++ events/events.rs | 3 +++ maps/maps.rs | 8 ++++++++ ranks/ranks.rs | 14 ++++++++++++++ servers/servers.rs | 16 ++++++++++++++++ times/times.rs | 15 +++++++++++++++ transactions/transactions.rs | 11 +++++++++++ users/users.rs | 8 ++++++++ 8 files changed, 83 insertions(+) diff --git a/bots/bots.rs b/bots/bots.rs index 4131640..a27c2cf 100644 --- a/bots/bots.rs +++ b/bots/bots.rs @@ -5,6 +5,7 @@ #[serde(rename_all_fields = "PascalCase")] pub struct IdList { #[prost(int64, repeated, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -12,6 +13,7 @@ pub struct IdList { #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -19,12 +21,15 @@ pub struct IdMessage { #[serde(rename_all_fields = "PascalCase")] pub struct BotResponse { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(int64, tag="2")] + [serde(rename = "TimeID")] pub time_id: i64, #[prost(int64, tag="3")] pub date: i64, #[prost(string, tag="4")] + [serde(rename = "FileID")] pub file_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -32,12 +37,15 @@ pub struct BotResponse { #[serde(rename_all_fields = "PascalCase")] pub struct BotRequest { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(int64, optional, tag="2")] + [serde(rename = "TimeID")] pub time_id: ::core::option::Option, #[prost(int64, optional, tag="3")] pub date: ::core::option::Option, #[prost(string, optional, tag="4")] + [serde(rename = "FileID")] pub file_id: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/events/events.rs b/events/events.rs index 59cd764..7837632 100644 --- a/events/events.rs +++ b/events/events.rs @@ -9,6 +9,7 @@ pub struct EventCreate { #[prost(string, tag="2")] pub server: ::prost::alloc::string::String, #[prost(int32, tag="3")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(int64, tag="4")] pub date: i64, @@ -20,12 +21,14 @@ pub struct EventCreate { #[serde(rename_all_fields = "PascalCase")] pub struct EventItem { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(string, tag="2")] pub event: ::prost::alloc::string::String, #[prost(string, tag="3")] pub server: ::prost::alloc::string::String, #[prost(int32, tag="4")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(int64, tag="5")] pub date: i64, diff --git a/maps/maps.rs b/maps/maps.rs index 2b9399d..4e30824 100644 --- a/maps/maps.rs +++ b/maps/maps.rs @@ -5,6 +5,7 @@ #[serde(rename_all_fields = "PascalCase")] pub struct IdList { #[prost(int64, repeated, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -12,6 +13,7 @@ pub struct IdList { #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -19,12 +21,14 @@ pub struct IdMessage { #[serde(rename_all_fields = "PascalCase")] pub struct MapResponse { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(string, tag="2")] pub display_name: ::prost::alloc::string::String, #[prost(string, tag="3")] pub creator: ::prost::alloc::string::String, #[prost(int32, tag="4")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(int64, tag="5")] pub date: i64, @@ -34,12 +38,14 @@ pub struct MapResponse { #[serde(rename_all_fields = "PascalCase")] pub struct MapRequest { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(string, optional, tag="2")] pub display_name: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag="3")] pub creator: ::core::option::Option<::prost::alloc::string::String>, #[prost(int32, optional, tag="4")] + [serde(rename = "GameID")] pub game_id: ::core::option::Option, #[prost(int64, optional, tag="5")] pub date: ::core::option::Option, @@ -49,12 +55,14 @@ pub struct MapRequest { #[serde(rename_all_fields = "PascalCase")] pub struct MapFilter { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(string, optional, tag="2")] pub display_name: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag="3")] pub creator: ::core::option::Option<::prost::alloc::string::String>, #[prost(int32, optional, tag="4")] + [serde(rename = "GameID")] pub game_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/ranks/ranks.rs b/ranks/ranks.rs index 1b58e0d..1cefd73 100644 --- a/ranks/ranks.rs +++ b/ranks/ranks.rs @@ -5,6 +5,7 @@ #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -12,14 +13,19 @@ pub struct IdMessage { #[serde(rename_all_fields = "PascalCase")] pub struct GetRequest { #[prost(int64, tag="1")] + [serde(rename = "UserID")] pub user_id: i64, #[prost(int32, tag="2")] + [serde(rename = "StyleID")] pub style_id: i32, #[prost(int32, tag="3")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(int32, tag="4")] + [serde(rename = "ModeID")] pub mode_id: i32, #[prost(int32, repeated, tag="5")] + [serde(rename = "StateID")] pub state_id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -27,14 +33,18 @@ pub struct GetRequest { #[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(int32, tag="1")] + [serde(rename = "StyleID")] pub style_id: i32, #[prost(int32, tag="2")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(int32, tag="3")] + [serde(rename = "ModeID")] pub mode_id: i32, #[prost(int64, tag="4")] pub sort: i64, #[prost(int32, repeated, tag="5")] + [serde(rename = "StateID")] pub state_id: ::prost::alloc::vec::Vec, #[prost(message, optional, tag="6")] pub page: ::core::option::Option, @@ -51,14 +61,18 @@ pub struct RankList { #[serde(rename_all_fields = "PascalCase")] pub struct RankMessage { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(message, optional, tag="2")] pub user: ::core::option::Option, #[prost(int32, tag="3")] + [serde(rename = "StyleID")] pub style_id: i32, #[prost(int32, tag="4")] + [serde(rename = "ModeID")] pub mode_id: i32, #[prost(int32, tag="5")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(double, tag="6")] pub rank: f64, diff --git a/servers/servers.rs b/servers/servers.rs index d54d5a3..955d5bc 100644 --- a/servers/servers.rs +++ b/servers/servers.rs @@ -12,6 +12,7 @@ pub struct ServerList { #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -19,16 +20,21 @@ pub struct IdMessage { #[serde(rename_all_fields = "PascalCase")] pub struct ServerCreate { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, #[prost(int64, tag="2")] + [serde(rename = "PlaceID")] pub place_id: i64, #[prost(int64, tag="3")] pub start_time: i64, #[prost(string, tag="4")] + [serde(rename = "VipServerID")] pub vip_server_id: ::prost::alloc::string::String, #[prost(int64, tag="5")] + [serde(rename = "UserID")] pub user_id: i64, #[prost(int32, tag="6")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(int64, tag="7")] pub map_id: i64, @@ -44,16 +50,20 @@ pub struct ServerCreate { #[serde(rename_all_fields = "PascalCase")] pub struct ServerItem { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, #[prost(int64, tag="2")] + [serde(rename = "PlaceID")] pub place_id: i64, #[prost(int64, tag="3")] pub start_time: i64, #[prost(string, tag="4")] + [serde(rename = "VipServerID")] pub vip_server_id: ::prost::alloc::string::String, #[prost(message, optional, tag="5")] pub user: ::core::option::Option, #[prost(int32, tag="6")] + [serde(rename = "GameID")] pub game_id: i32, #[prost(message, optional, tag="7")] pub map: ::core::option::Option, @@ -69,6 +79,7 @@ pub struct ServerItem { #[serde(rename_all_fields = "PascalCase")] pub struct ServerUpdate { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, #[prost(int64, optional, tag="2")] pub map_id: ::core::option::Option, @@ -82,14 +93,19 @@ pub struct ServerUpdate { #[serde(rename_all_fields = "PascalCase")] pub struct ServerFilter { #[prost(string, optional, tag="1")] + [serde(rename = "ID")] pub id: ::core::option::Option<::prost::alloc::string::String>, #[prost(int64, optional, tag="2")] + [serde(rename = "PlaceID")] pub place_id: ::core::option::Option, #[prost(string, optional, tag="4")] + [serde(rename = "VipServerID")] pub vip_server_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(int64, optional, tag="5")] + [serde(rename = "UserID")] pub user_id: ::core::option::Option, #[prost(int32, optional, tag="6")] + [serde(rename = "GameID")] pub game_id: ::core::option::Option, #[prost(int64, optional, tag="7")] pub map_id: ::core::option::Option, diff --git a/times/times.rs b/times/times.rs index 350c8c5..1eba49d 100644 --- a/times/times.rs +++ b/times/times.rs @@ -5,20 +5,25 @@ #[serde(rename_all_fields = "PascalCase")] pub struct TimeRequest { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(int64, optional, tag="2")] pub time: ::core::option::Option, #[prost(int64, optional, tag="3")] + [serde(rename = "UserID")] pub user_id: ::core::option::Option, #[prost(int64, optional, tag="4")] pub map_id: ::core::option::Option, #[prost(int64, optional, tag="5")] pub date: ::core::option::Option, #[prost(int32, optional, tag="6")] + [serde(rename = "StyleID")] pub style_id: ::core::option::Option, #[prost(int32, optional, tag="7")] + [serde(rename = "ModeID")] pub mode_id: ::core::option::Option, #[prost(int32, optional, tag="8")] + [serde(rename = "GameID")] pub game_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -26,20 +31,25 @@ pub struct TimeRequest { #[serde(rename_all_fields = "PascalCase")] pub struct TimeFilter { #[prost(int64, optional, tag="1")] + [serde(rename = "ID")] pub id: ::core::option::Option, #[prost(int64, optional, tag="2")] pub time: ::core::option::Option, #[prost(int64, optional, tag="3")] + [serde(rename = "UserID")] pub user_id: ::core::option::Option, #[prost(int64, optional, tag="4")] pub map_id: ::core::option::Option, #[prost(int64, optional, tag="5")] pub date: ::core::option::Option, #[prost(int32, optional, tag="6")] + [serde(rename = "StyleID")] pub style_id: ::core::option::Option, #[prost(int32, optional, tag="7")] + [serde(rename = "ModeID")] pub mode_id: ::core::option::Option, #[prost(int32, optional, tag="8")] + [serde(rename = "GameID")] pub game_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -47,6 +57,7 @@ pub struct TimeFilter { #[serde(rename_all_fields = "PascalCase")] pub struct TimeResponse { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(int64, tag="2")] pub time: i64, @@ -59,10 +70,13 @@ pub struct TimeResponse { #[prost(int64, tag="6")] pub date: i64, #[prost(int32, tag="7")] + [serde(rename = "StyleID")] pub style_id: i32, #[prost(int32, tag="8")] + [serde(rename = "ModeID")] pub mode_id: i32, #[prost(int32, tag="9")] + [serde(rename = "GameID")] pub game_id: i32, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -70,6 +84,7 @@ pub struct TimeResponse { #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/transactions/transactions.rs b/transactions/transactions.rs index 8173521..2fa11d8 100644 --- a/transactions/transactions.rs +++ b/transactions/transactions.rs @@ -5,12 +5,15 @@ #[serde(rename_all_fields = "PascalCase")] pub struct TransactionCreate { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, #[prost(int64, tag="2")] + [serde(rename = "UserID")] pub user_id: i64, #[prost(int64, tag="3")] pub value: i64, #[prost(int32, tag="4")] + [serde(rename = "StateID")] pub state_id: i32, #[prost(message, optional, tag="5")] pub data: ::core::option::Option<::prost_types::Struct>, @@ -20,10 +23,12 @@ pub struct TransactionCreate { #[serde(rename_all_fields = "PascalCase")] pub struct TransactionUpdate { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, #[prost(int64, optional, tag="2")] pub value: ::core::option::Option, #[prost(int64, optional, tag="3")] + [serde(rename = "StateID")] pub state_id: ::core::option::Option, #[prost(message, optional, tag="4")] pub data: ::core::option::Option<::prost_types::Struct>, @@ -33,12 +38,14 @@ pub struct TransactionUpdate { #[serde(rename_all_fields = "PascalCase")] pub struct TransactionItem { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, #[prost(message, optional, tag="2")] pub user: ::core::option::Option, #[prost(int64, tag="3")] pub value: i64, #[prost(int32, tag="4")] + [serde(rename = "StateID")] pub state_id: i32, #[prost(int64, tag="5")] pub created: i64, @@ -52,8 +59,10 @@ pub struct TransactionItem { #[serde(rename_all_fields = "PascalCase")] pub struct TransactionFilter { #[prost(int64, optional, tag="1")] + [serde(rename = "UserID")] pub user_id: ::core::option::Option, #[prost(int32, optional, tag="2")] + [serde(rename = "StateID")] pub state_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -93,6 +102,7 @@ pub struct BalanceResponse { #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(string, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -100,6 +110,7 @@ pub struct IdMessage { #[serde(rename_all_fields = "PascalCase")] pub struct UserIdMessage { #[prost(int64, tag="1")] + [serde(rename = "UserID")] pub user_id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/users/users.rs b/users/users.rs index b91fe5a..86714a1 100644 --- a/users/users.rs +++ b/users/users.rs @@ -5,6 +5,7 @@ #[serde(rename_all_fields = "PascalCase")] pub struct IdList { #[prost(int64, repeated, tag="1")] + [serde(rename = "ID")] pub id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -12,6 +13,7 @@ pub struct IdList { #[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -19,10 +21,12 @@ pub struct IdMessage { #[serde(rename_all_fields = "PascalCase")] pub struct UserResponse { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(string, tag="2")] pub username: ::prost::alloc::string::String, #[prost(int32, tag="3")] + [serde(rename = "StateID")] pub state_id: i32, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -30,10 +34,12 @@ pub struct UserResponse { #[serde(rename_all_fields = "PascalCase")] pub struct UserRequest { #[prost(int64, tag="1")] + [serde(rename = "ID")] pub id: i64, #[prost(string, optional, tag="2")] pub username: ::core::option::Option<::prost::alloc::string::String>, #[prost(int32, optional, tag="3")] + [serde(rename = "StateID")] pub state_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -41,10 +47,12 @@ pub struct UserRequest { #[serde(rename_all_fields = "PascalCase")] pub struct UserFilter { #[prost(int64, optional, tag="1")] + [serde(rename = "ID")] pub id: ::core::option::Option, #[prost(string, optional, tag="2")] pub username: ::core::option::Option<::prost::alloc::string::String>, #[prost(int32, optional, tag="3")] + [serde(rename = "StateID")] pub state_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)]