31 lines
689 B
Rust
31 lines
689 B
Rust
/*
|
|
* SCP (Server Control Panel) REST API
|
|
*
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 2025.1218.164029
|
|
*
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct Site {
|
|
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
|
pub id: Option<i32>,
|
|
#[serde(rename = "city")]
|
|
pub city: String,
|
|
}
|
|
|
|
impl Site {
|
|
pub fn new(city: String) -> Site {
|
|
Site {
|
|
id: None,
|
|
city,
|
|
}
|
|
}
|
|
}
|
|
|