rust-grpc/maps/maps.rs

100 lines
3.7 KiB
Rust
Raw Normal View History

// @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 IdList {
#[prost(int64, repeated, tag="1")]
#[serde(rename = "ID")]
pub id: ::prost::alloc::vec::Vec<i64>,
}
#[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 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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[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<i32>,
#[prost(int64, optional, tag="5")]
pub date: ::core::option::Option<i64>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[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<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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<MapResponse>,
}
#[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(message, optional, tag="1")]
pub filter: ::core::option::Option<MapFilter>,
#[prost(message, optional, tag="2")]
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 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!("maps.tonic.rs");
// @@protoc_insertion_point(module)