Implements leaving on the client side
This commit is contained in:
27
gamenight-api-client-rs/src/models/gamenight_id.rs
Normal file
27
gamenight-api-client-rs/src/models/gamenight_id.rs
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Gamenight
|
||||
*
|
||||
* Api specifaction 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 GamenightId {
|
||||
#[serde(rename = "gamenight_id")]
|
||||
pub gamenight_id: String,
|
||||
}
|
||||
|
||||
impl GamenightId {
|
||||
pub fn new(gamenight_id: String) -> GamenightId {
|
||||
GamenightId {
|
||||
gamenight_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user