31 lines
707 B
Rust
31 lines
707 B
Rust
/*
|
|
* Gamenight
|
|
*
|
|
* Api specification for a Gamenight server
|
|
*
|
|
* The version of the OpenAPI document: 1.0
|
|
* Contact: dennis@brentj.es
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct OwnGameRequestBody {
|
|
#[serde(rename = "game_id")]
|
|
pub game_id: String,
|
|
#[serde(rename = "location_id", skip_serializing_if = "Option::is_none")]
|
|
pub location_id: Option<String>,
|
|
}
|
|
|
|
impl OwnGameRequestBody {
|
|
pub fn new(game_id: String) -> OwnGameRequestBody {
|
|
OwnGameRequestBody {
|
|
game_id,
|
|
location_id: None,
|
|
}
|
|
}
|
|
}
|
|
|