140 lines
4.8 KiB
Rust
140 lines
4.8 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 = "PascalCase")]
|
|
pub struct TimeRequest {
|
|
#[prost(int64, tag="1")]
|
|
#[serde(rename = "ID")]
|
|
pub id: i64,
|
|
#[prost(int64, optional, tag="2")]
|
|
pub time: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="3")]
|
|
#[serde(rename = "UserID")]
|
|
pub user_id: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="4")]
|
|
pub map_id: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="5")]
|
|
pub date: ::core::option::Option<i64>,
|
|
#[prost(int32, optional, tag="6")]
|
|
#[serde(rename = "StyleID")]
|
|
pub style_id: ::core::option::Option<i32>,
|
|
#[prost(int32, optional, tag="7")]
|
|
#[serde(rename = "ModeID")]
|
|
pub mode_id: ::core::option::Option<i32>,
|
|
#[prost(int32, optional, tag="8")]
|
|
#[serde(rename = "GameID")]
|
|
pub game_id: ::core::option::Option<i32>,
|
|
}
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct TimeFilter {
|
|
#[prost(int64, optional, tag="1")]
|
|
#[serde(rename = "ID")]
|
|
pub id: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="2")]
|
|
pub time: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="3")]
|
|
#[serde(rename = "UserID")]
|
|
pub user_id: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="4")]
|
|
pub map_id: ::core::option::Option<i64>,
|
|
#[prost(int64, optional, tag="5")]
|
|
pub date: ::core::option::Option<i64>,
|
|
#[prost(int32, optional, tag="6")]
|
|
#[serde(rename = "StyleID")]
|
|
pub style_id: ::core::option::Option<i32>,
|
|
#[prost(int32, optional, tag="7")]
|
|
#[serde(rename = "ModeID")]
|
|
pub mode_id: ::core::option::Option<i32>,
|
|
#[prost(int32, optional, tag="8")]
|
|
#[serde(rename = "GameID")]
|
|
pub game_id: ::core::option::Option<i32>,
|
|
}
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct TimeResponse {
|
|
#[prost(int64, tag="1")]
|
|
#[serde(rename = "ID")]
|
|
pub id: i64,
|
|
#[prost(int64, tag="2")]
|
|
pub time: i64,
|
|
#[prost(message, optional, tag="3")]
|
|
pub user: ::core::option::Option<super::users::UserResponse>,
|
|
#[prost(message, optional, tag="4")]
|
|
pub map: ::core::option::Option<super::maps::MapResponse>,
|
|
#[prost(message, optional, tag="5")]
|
|
pub bot: ::core::option::Option<super::bots::BotResponse>,
|
|
#[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)]
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "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 = "PascalCase")]
|
|
pub struct TimeList {
|
|
#[prost(message, repeated, tag="1")]
|
|
pub times: ::prost::alloc::vec::Vec<TimeResponse>,
|
|
#[prost(int64, tag="2")]
|
|
pub total: i64,
|
|
}
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct RankResponse {
|
|
#[prost(int64, tag="1")]
|
|
pub rank: i64,
|
|
}
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct ListRequest {
|
|
#[prost(message, optional, tag="1")]
|
|
pub filter: ::core::option::Option<TimeFilter>,
|
|
#[prost(bool, tag="2")]
|
|
pub blacklisted: bool,
|
|
#[prost(message, optional, tag="3")]
|
|
pub page: ::core::option::Option<Pagination>,
|
|
///
|
|
/// 0 - time ASC
|
|
/// 1 - time DSC
|
|
/// 2 - date ASC
|
|
/// 3 - date DSC
|
|
#[prost(uint32, tag="4")]
|
|
pub sort: u32,
|
|
}
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "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 = "PascalCase")]
|
|
pub struct NullResponse {
|
|
}
|
|
include!("times.tonic.rs");
|
|
// @@protoc_insertion_point(module)
|