/* * 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 OwnedGame { #[serde(rename = "user_id")] pub user_id: String, #[serde(rename = "game_id")] pub game_id: String, #[serde(rename = "location_id", skip_serializing_if = "Option::is_none")] pub location_id: Option, } impl OwnedGame { pub fn new(user_id: String, game_id: String) -> OwnedGame { OwnedGame { user_id, game_id, location_id: None, } } }