rust-grpc/events/events.rs

70 lines
2.4 KiB
Rust
Raw Permalink 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 = "PascalCase")]
pub struct EventCreate {
#[prost(string, tag="1")]
pub event: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub server: ::prost::alloc::string::String,
#[prost(int32, tag="3")]
#[serde(rename = "GameID")]
pub game_id: i32,
#[prost(int64, tag="4")]
pub date: i64,
#[prost(message, optional, tag="5")]
pub data: ::core::option::Option<::prost_types::Struct>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct EventItem {
#[prost(int64, tag="1")]
#[serde(rename = "ID")]
pub id: i64,
#[prost(string, tag="2")]
pub event: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub server: ::prost::alloc::string::String,
#[prost(int32, tag="4")]
#[serde(rename = "GameID")]
pub game_id: i32,
#[prost(int64, tag="5")]
pub date: i64,
#[prost(message, optional, tag="6")]
pub data: ::core::option::Option<::prost_types::Struct>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct LatestRequest {
#[prost(int64, optional, tag="1")]
pub date: ::core::option::Option<i64>,
#[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 = "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 LatestResponse {
#[prost(message, repeated, tag="1")]
pub events: ::prost::alloc::vec::Vec<EventItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct NullResponse {
}
include!("events.tonic.rs");
// @@protoc_insertion_point(module)