rust-grpc/times/times.rs

116 lines
3.7 KiB
Rust

// @generated
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeRequest {
#[prost(int64, tag="1")]
pub id: i64,
#[prost(int64, optional, tag="2")]
pub time: ::core::option::Option<i64>,
#[prost(int64, optional, tag="3")]
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")]
pub style_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag="7")]
pub mode_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag="8")]
pub game_id: ::core::option::Option<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeFilter {
#[prost(int64, optional, tag="1")]
pub id: ::core::option::Option<i64>,
#[prost(int64, optional, tag="2")]
pub time: ::core::option::Option<i64>,
#[prost(int64, optional, tag="3")]
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")]
pub style_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag="7")]
pub mode_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag="8")]
pub game_id: ::core::option::Option<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeResponse {
#[prost(int64, tag="1")]
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")]
pub style_id: i32,
#[prost(int32, tag="8")]
pub mode_id: i32,
#[prost(int32, tag="9")]
pub game_id: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdMessage {
#[prost(int64, tag="1")]
pub id: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
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)]
pub struct RankResponse {
#[prost(int64, tag="1")]
pub rank: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
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)]
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)]
pub struct NullResponse {
}
include!("times.tonic.rs");
// @@protoc_insertion_point(module)