rust-grpc/ranks/ranks.rs

100 lines
3.3 KiB
Rust

// @generated
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[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)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[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<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[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<i32>,
#[prost(message, optional, tag="6")]
pub page: ::core::option::Option<Pagination>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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<RankMessage>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[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<super::users::UserResponse>,
#[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,
#[prost(double, tag="7")]
pub skill: f64,
#[prost(int64, tag="8")]
pub updated_at: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[serde(rename_all_fields = "PascalCase")]
pub struct Pagination {
#[prost(int32, tag="1")]
pub size: i32,
#[prost(int32, tag="2")]
pub number: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[serde(rename_all_fields = "PascalCase")]
pub struct NullResponse {
}
include!("ranks.tonic.rs");
// @@protoc_insertion_point(module)