feat: added agent rust client generation
This commit is contained in:
30
public/agent-client/src/models/validate_body.rs
Normal file
30
public/agent-client/src/models/validate_body.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 ValidateBody {
|
||||
#[serde(rename = "config_name")]
|
||||
pub config_name: String,
|
||||
#[serde(rename = "timestamp")]
|
||||
pub timestamp: i64,
|
||||
}
|
||||
|
||||
impl ValidateBody {
|
||||
pub fn new(config_name: String, timestamp: i64) -> ValidateBody {
|
||||
ValidateBody {
|
||||
config_name,
|
||||
timestamp,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user