33 lines
802 B
Rust
33 lines
802 B
Rust
/*
|
|
* yanpm-agent
|
|
*
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 0.1.0
|
|
*
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct WriteConfigBody {
|
|
#[serde(rename = "config_name")]
|
|
pub config_name: String,
|
|
#[serde(rename = "content")]
|
|
pub content: String,
|
|
#[serde(rename = "timestamp")]
|
|
pub timestamp: i64,
|
|
}
|
|
|
|
impl WriteConfigBody {
|
|
pub fn new(config_name: String, content: String, timestamp: i64) -> WriteConfigBody {
|
|
WriteConfigBody {
|
|
config_name,
|
|
content,
|
|
timestamp,
|
|
}
|
|
}
|
|
}
|