Added owning games and not willing to travel with them.
This commit is contained in:
30
gamenight-api-client-rs/src/models/own_game_request_body.rs
Normal file
30
gamenight-api-client-rs/src/models/own_game_request_body.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user