Skip to content

Commit

Permalink
interface changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDavenport committed Apr 21, 2024
1 parent 0619ce0 commit ba0492b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions gamercade_interface/proto/game.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ message GameInfoBasic {

message GameInfoDetailed {
GameInfoBasic basic_info = 1;
string long_description = 2;
repeated Author authors = 3;
optional string long_description = 2;
repeated GameAuthor authors = 3;
}

message Author {
message GameAuthor {
sfixed64 user_id = 1;
string title = 2;
}
10 changes: 6 additions & 4 deletions gamercade_interface/src/output/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ pub struct GameInfoBasic {
pub struct GameInfoDetailed {
#[prost(message, optional, tag = "1")]
pub basic_info: ::core::option::Option<GameInfoBasic>,
#[prost(string, tag = "2")]
pub long_description: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub long_description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "3")]
pub authors: ::prost::alloc::vec::Vec<Author>,
pub authors: ::prost::alloc::vec::Vec<GameAuthor>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Author {
pub struct GameAuthor {
#[prost(sfixed64, tag = "1")]
pub user_id: i64,
#[prost(string, tag = "2")]
pub title: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod game_service_client {
Expand Down

0 comments on commit ba0492b

Please sign in to comment.