feat: added agent rust client generation
This commit is contained in:
30
public/agent-client/src/models/validate_and_reload_resp.rs
Normal file
30
public/agent-client/src/models/validate_and_reload_resp.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 ValidateAndReloadResp {
|
||||
#[serde(rename = "rc")]
|
||||
pub rc: i32,
|
||||
#[serde(rename = "ro")]
|
||||
pub ro: String,
|
||||
}
|
||||
|
||||
impl ValidateAndReloadResp {
|
||||
pub fn new(rc: i32, ro: String) -> ValidateAndReloadResp {
|
||||
ValidateAndReloadResp {
|
||||
rc,
|
||||
ro,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user