diff --git a/bots/bots.rs b/bots/bots.rs index 377131e..4131640 100644 --- a/bots/bots.rs +++ b/bots/bots.rs @@ -1,19 +1,22 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdList { #[prost(int64, repeated, tag="1")] pub id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct BotResponse { #[prost(int64, tag="1")] pub id: i64, @@ -25,7 +28,8 @@ pub struct BotResponse { pub file_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct BotRequest { #[prost(int64, tag="1")] pub id: i64, @@ -37,13 +41,15 @@ pub struct BotRequest { pub file_id: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct BotList { #[prost(message, repeated, tag="1")] pub bots: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(message, optional, tag="1")] pub filter: ::core::option::Option, @@ -51,7 +57,8 @@ pub struct ListRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -59,7 +66,8 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("bots.tonic.rs"); diff --git a/datastore/datastore.rs b/datastore/datastore.rs index b6f960e..55f506c 100644 --- a/datastore/datastore.rs +++ b/datastore/datastore.rs @@ -1,13 +1,15 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct KeyMessage { #[prost(string, tag="1")] pub key: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct UpdateMessage { #[prost(string, tag="1")] pub key: ::prost::alloc::string::String, @@ -17,7 +19,8 @@ pub struct UpdateMessage { pub deletes: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ObjectResponse { #[prost(string, tag="1")] pub key: ::prost::alloc::string::String, @@ -25,7 +28,8 @@ pub struct ObjectResponse { pub data: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("datastore.tonic.rs"); diff --git a/events/events.rs b/events/events.rs index baab9ac..59cd764 100644 --- a/events/events.rs +++ b/events/events.rs @@ -1,7 +1,8 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct EventCreate { #[prost(string, tag="1")] pub event: ::prost::alloc::string::String, @@ -15,7 +16,8 @@ pub struct EventCreate { pub data: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct EventItem { #[prost(int64, tag="1")] pub id: i64, @@ -31,7 +33,8 @@ pub struct EventItem { pub data: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct LatestRequest { #[prost(int64, optional, tag="1")] pub date: ::core::option::Option, @@ -39,7 +42,8 @@ pub struct LatestRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -47,13 +51,15 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct LatestResponse { #[prost(message, repeated, tag="1")] pub events: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("events.tonic.rs"); diff --git a/maps/maps.rs b/maps/maps.rs index 90e7efb..2b9399d 100644 --- a/maps/maps.rs +++ b/maps/maps.rs @@ -1,19 +1,22 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdList { #[prost(int64, repeated, tag="1")] pub id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct MapResponse { #[prost(int64, tag="1")] pub id: i64, @@ -27,7 +30,8 @@ pub struct MapResponse { pub date: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct MapRequest { #[prost(int64, tag="1")] pub id: i64, @@ -41,7 +45,8 @@ pub struct MapRequest { pub date: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct MapFilter { #[prost(int64, tag="1")] pub id: i64, @@ -53,13 +58,15 @@ pub struct MapFilter { pub game_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct MapList { #[prost(message, repeated, tag="1")] pub maps: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(message, optional, tag="1")] pub filter: ::core::option::Option, @@ -67,7 +74,8 @@ pub struct ListRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -75,7 +83,8 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("maps.tonic.rs"); diff --git a/ranks/ranks.rs b/ranks/ranks.rs index 9ee7ad5..1b58e0d 100644 --- a/ranks/ranks.rs +++ b/ranks/ranks.rs @@ -1,13 +1,15 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct GetRequest { #[prost(int64, tag="1")] pub user_id: i64, @@ -21,7 +23,8 @@ pub struct GetRequest { pub state_id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(int32, tag="1")] pub style_id: i32, @@ -37,13 +40,15 @@ pub struct ListRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct RankList { #[prost(message, repeated, tag="1")] pub ranks: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct RankMessage { #[prost(int64, tag="1")] pub id: i64, @@ -63,7 +68,8 @@ pub struct RankMessage { pub updated_at: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -71,7 +77,8 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("ranks.tonic.rs"); diff --git a/servers/servers.rs b/servers/servers.rs index 8754c62..d54d5a3 100644 --- a/servers/servers.rs +++ b/servers/servers.rs @@ -1,19 +1,22 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ServerList { #[prost(message, repeated, tag="1")] pub servers: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ServerCreate { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, @@ -37,7 +40,8 @@ pub struct ServerCreate { pub last_update: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ServerItem { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, @@ -61,7 +65,8 @@ pub struct ServerItem { pub last_update: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ServerUpdate { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, @@ -73,7 +78,8 @@ pub struct ServerUpdate { pub player_list: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ServerFilter { #[prost(string, optional, tag="1")] pub id: ::core::option::Option<::prost::alloc::string::String>, @@ -89,7 +95,8 @@ pub struct ServerFilter { pub map_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -97,7 +104,8 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ServerListRequest { #[prost(message, optional, tag="1")] pub filter: ::core::option::Option, @@ -105,7 +113,8 @@ pub struct ServerListRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("servers.tonic.rs"); diff --git a/times/times.rs b/times/times.rs index b835124..350c8c5 100644 --- a/times/times.rs +++ b/times/times.rs @@ -1,7 +1,8 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TimeRequest { #[prost(int64, tag="1")] pub id: i64, @@ -21,7 +22,8 @@ pub struct TimeRequest { pub game_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TimeFilter { #[prost(int64, optional, tag="1")] pub id: ::core::option::Option, @@ -41,7 +43,8 @@ pub struct TimeFilter { pub game_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TimeResponse { #[prost(int64, tag="1")] pub id: i64, @@ -63,13 +66,15 @@ pub struct TimeResponse { pub game_id: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TimeList { #[prost(message, repeated, tag="1")] pub times: ::prost::alloc::vec::Vec, @@ -77,13 +82,15 @@ pub struct TimeList { pub total: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct RankResponse { #[prost(int64, tag="1")] pub rank: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(message, optional, tag="1")] pub filter: ::core::option::Option, @@ -100,7 +107,8 @@ pub struct ListRequest { pub sort: u32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -108,7 +116,8 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("times.tonic.rs"); diff --git a/transactions/transactions.rs b/transactions/transactions.rs index 7ebbfdd..8173521 100644 --- a/transactions/transactions.rs +++ b/transactions/transactions.rs @@ -1,7 +1,8 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TransactionCreate { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, @@ -15,7 +16,8 @@ pub struct TransactionCreate { pub data: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TransactionUpdate { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, @@ -27,7 +29,8 @@ pub struct TransactionUpdate { pub data: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TransactionItem { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, @@ -45,7 +48,8 @@ pub struct TransactionItem { pub data: ::core::option::Option<::prost_types::Struct>, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TransactionFilter { #[prost(int64, optional, tag="1")] pub user_id: ::core::option::Option, @@ -53,7 +57,8 @@ pub struct TransactionFilter { pub state_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(message, optional, tag="1")] pub filter: ::core::option::Option, @@ -61,7 +66,8 @@ pub struct ListRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -69,31 +75,36 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct TransactionList { #[prost(message, repeated, tag="1")] pub transactions: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct BalanceResponse { #[prost(int64, tag="1")] pub balance: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct UserIdMessage { #[prost(int64, tag="1")] pub user_id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("transactions.tonic.rs"); diff --git a/users/users.rs b/users/users.rs index 1cfff22..b91fe5a 100644 --- a/users/users.rs +++ b/users/users.rs @@ -1,19 +1,22 @@ // @generated // This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdList { #[prost(int64, repeated, tag="1")] pub id: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct IdMessage { #[prost(int64, tag="1")] pub id: i64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct UserResponse { #[prost(int64, tag="1")] pub id: i64, @@ -23,7 +26,8 @@ pub struct UserResponse { pub state_id: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct UserRequest { #[prost(int64, tag="1")] pub id: i64, @@ -33,7 +37,8 @@ pub struct UserRequest { pub state_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct UserFilter { #[prost(int64, optional, tag="1")] pub id: ::core::option::Option, @@ -43,13 +48,15 @@ pub struct UserFilter { pub state_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct UserList { #[prost(message, repeated, tag="1")] pub users: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct ListRequest { #[prost(message, optional, tag="1")] pub filter: ::core::option::Option, @@ -57,7 +64,8 @@ pub struct ListRequest { pub page: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct Pagination { #[prost(int32, tag="1")] pub size: i32, @@ -65,7 +73,8 @@ pub struct Pagination { pub number: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)] +#[serde(rename_all_fields = "PascalCase")] pub struct NullResponse { } include!("users.tonic.rs");