Init
This commit is contained in:
30
scp_core/src/models/image_minimal.rs
Normal file
30
scp_core/src/models/image_minimal.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 ImageMinimal {
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<i32>,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl ImageMinimal {
|
||||
pub fn new(name: String) -> ImageMinimal {
|
||||
ImageMinimal {
|
||||
id: None,
|
||||
name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user